diff --git a/bin/generate_md_episodes.R b/bin/generate_md_episodes.R
index f2a40ba4a7285db9ee2b001ed1a56aabd973a9d8..4ea9835037a81c7e9c657681b12c46cfa30b235f 100644
--- a/bin/generate_md_episodes.R
+++ b/bin/generate_md_episodes.R
@@ -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")