Load methods package
authorJoseph Stachelek <jsta@users.noreply.github.com>
Tue, 5 Sep 2017 18:21:19 +0000 (14:21 -0400)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2017 18:21:19 +0000 (14:21 -0400)
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 https://github.com/r-spatial/sf/issues/478

bin/generate_md_episodes.R

index f2a40ba4a7285db9ee2b001ed1a56aabd973a9d8..4ea9835037a81c7e9c657681b12c46cfa30b235f 100644 (file)
@@ -1,5 +1,7 @@
 generate_md_episodes <- function() {
 
+    library("methods")
+    
     if (require("knitr") && packageVersion("knitr") < '1.9.19')
         stop("knitr must be version 1.9.20 or higher")