[R] listing all files in a directory ending in ".xxx" in a script

J C Nash profjcn@@h @ending from gm@il@com
Sat Dec 15 01:33:25 CET 2018

When in a console (I was in Rstudio) I can run

dir("../provenance-of-rootfinding/", pattern="\\.Rmd")

to list all Rmd files in the specified directory.

However, when I try to run this in a script under

   Rscript --vanilla

I don't get the files to list.

Am I missing something obvious that I should know about?


More information about the R-help mailing list