You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Just came to inform that suggested packages used in examples should be escaped, so not mandatory to run examples. Best way is to use if (requireNamespace(.)) {_actual_code_} function. Otherwise you should move tmap (and potentially others, tmap was first to fail) to imports.
* checking examples ... ERROR
Running examples in ‘stplanr-Ex.R’ failed
The error most likely occurred in:
> ### Name: line2points
> ### Title: Convert a SpatialLinesDataFrame to points
> ### Aliases: line2points line2pointsn
>
> ### ** Examples
>
> data(routes_fast)
> lpoints <- line2pointsn(routes_fast[2,]) # for a single line
> lpoints2 = line2points(routes_fast[2,])
> plot(lpoints)
> plot(lpoints2)
> lpoints = line2pointsn(routes_fast) # for many lines
> plot(lpoints)
> data(flowlines) # load demo flowlines dataset
> lpoints <- line2points(flowlines) # for many lines
Error in loadNamespace(name) : there is no package called ‘tmap’
Calls: line2points ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
The best way to check is remove all suggested deps and try R CMD check. More details in R-exts.
The text was updated successfully, but these errors were encountered:
Hi,
Just came to inform that suggested packages used in examples should be escaped, so not mandatory to run examples. Best way is to use
if (requireNamespace(.)) {_actual_code_}
function. Otherwise you should movetmap
(and potentially others,tmap
was first to fail) to imports.The best way to check is remove all suggested deps and try R CMD check. More details in R-exts.
The text was updated successfully, but these errors were encountered: