Re: [R] package.skeleton warning

2015-04-29 Thread Duncan Murdoch
On 29/04/2015 3:49 AM, carol white wrote: > So I finally used > filenames <- list.files("~/Desktop/myPkg/R/", full.names = TRUE) > package.skeleton(name = "myPackage", code_files = filenames) > > and still despite the warnings mentioned before, the man and R folders > seem to have been created cor

Re: [R] package.skeleton warning

2015-04-29 Thread carol white via R-help
So I finally used filenames <- list.files("~/Desktop/myPkg/R/", full.names = TRUE) package.skeleton(name = "myPackage", code_files = filenames) and still despite the warnings mentioned before, the man and R folders seem to have been created correctly. I had put the vignettes folder and inst in t

Re: [R] package.skeleton warning

2015-04-28 Thread Jeff Newmiller
You don't have to do it by hand. Use the list.files function to create the list of file names. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

Re: [R] package.skeleton warning

2015-04-28 Thread carol white via R-help
I have many code files so listing them will be long. When leave it empty, I get package.skeleton(name = "myPackage", code_files = "") Error in sys.source(cf, envir = environment) : '' is not an existing file There should be an automatic way to source all code files instead of listing them. Even

Re: [R] package.skeleton warning

2015-04-28 Thread Duncan Murdoch
On 28/04/2015 10:05 AM, carol white via R-help wrote: Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1: In package.skeleton(name = "myPackage", code_files = "~/Desktop/myPkg/R/") : Invalid file name(s) for R code in ./myPackage/R:

[R] package.skeleton warning

2015-04-28 Thread carol white via R-help
Hi,Why do I get this warning when I run package.skeleton() and how to solve this problem? Warning messages: 1: In package.skeleton(name = "myPackage", code_files = "~/Desktop/myPkg/R/") :   Invalid file name(s) for R code in ./myPackage/R:   'R'  are now renamed to 'z.R' 2: In file.rename(from =