[R] package.skeleton warning

Duncan Murdoch murdoch.duncan at gmail.com
Tue Apr 28 16:48:36 CEST 2015


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'
>   are now renamed to 'z<name>.R'
> 2: In file.rename(from = file.path(code_dir, wrong), to = file.path(code_dir,  :
>    cannot rename file './myPackage/R/R' to './myPackage/R/zR.R', reason 'No such file or directory'
>

You are saying that your code is in a file called

"~/Desktop/myPkg/R/"

but you have no such file.  If you really do have your code already in some files, list them in the code_files argument, otherwise leave it blank.

Duncan Murdoch



More information about the R-help mailing list