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
It is well known that Rscript does not load methods, where R does. Start your script with an explicit library(methods) if you want it to work like it does in R.
Building `md` from `Rmd` in a script like this will break if the `methods` package is not called and the code includes class object routines. See r-spatial/sf#478
I have two documents.
I am able to render the rmarkdown if I run knitr interactively. However, I if run the build script with
Rscript
I get an error:## Error in as(x, "Spatial"): could not find function "as"
.It does not seem to matter whether I set the
envir
argument tonew.env()
orglobalenv()
.The text was updated successfully, but these errors were encountered: