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 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.