-
-
Notifications
You must be signed in to change notification settings - Fork 879
Open
Description
It seems to be knitr::purl feature to comment out the code chunks with options eval=FALSE, purl=TRUE in the extracted R script, and I could not find a workaround (option coment="" doesn't help). Let me show some use cases where this feature is a show stopper:
- The source document explains how to "play with data" on a specific example to achieve the desired result, but the extracted script should be usable with any data set. The script may thus ask the user about input/output file names or parameters relevant to its purpose. However, evaluation of something like
readLines("stdin", n = 1)hangs the knitting process, at least in Rstudio. - The source document explains how to use the generated script, for example describing its command line options. Of course there are no CLI options when knitting so eval=FALSE makes perfect sense then, but the code should be working in the extracted script.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels