Skip to content
Prev 22185 / 63424 Next

R CMD build when the package name is different from the directory name

Dear Seth,

Thank you for your message.
On Thursday 28 September 2006 16:22, Seth Falcon wrote:
I don't think that this is a feature -- it is IMHO rather a bug. While "R CMD 
check" and "R CMD INSTALL" take the real name (as expected), "R CMD build" 
does not.

However, if I don't have to change the file name and the name of the base 
directory before uploading the package to CRAN, the current behaviour of 
"R CMD build" is IMHO acceptable. (I did not yet get an answer on my question 
regarding CRAN.)
You can distinguish the tarballs according their version number and patch 
level (they are called "<package name>-<version number>-<patch level>.tar.gz"
In this case, the file name of the package is e.g. 
"<package name>-release-<version number>-<patch level>.tar.gz" 
and the base directory is e.g.
"<package name>-release".
Is this accepted on CRAN?
Arne