Skip to content
Prev 294058 / 398503 Next

file path

On 09/05/2012 4:03 AM, Wincent wrote:
I would just try to create the file, and if you fail, it's not 
legitimate.  Alternatively, you could look at the tests that R uses when 
it checks a package:  we try to keep filenames portable to all operating 
systems.  The rules seem to be strictest for vignettes:

         ## we specify ASCII filenames starting with a letter in R-exts
         ## do this in a locale-independent way.
         OK <- 
grep("^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz][ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-]+$", 
vignettes)

Duncan Murdoch