[R] R CMD INSTALL --build: Folders /inst and /etc not in zip-file and WindowsXP locks /library/[package]/etc/

2009-09-25 Thread Tobias Schoch

Dear R users,

My set-up: OS=Windows XP, R-2.9.2, Rtools210
I faced the follwing problem with the package compilation: There is no
"/inst" or "/etc" subdirectory in the package-zip-file. And the content of
the "/etc" subdirectory is lost, too. I tried a simplified "test" package.
The "test" package has the following structure (see also attachement: "test"
package as source file):

/test
   |---/inst
   | |---/etc
   |   |---menus.txt
   |
   |---/man
   | |---mymean.Rd
   | |---test-package.Rd
   |
   |---/R
   | |---mymean.R
   |
   |---NAMESPACE
   |---DESCRIPTION
   
The file "menus.txt" (inspired by the Rcmdr menu structure) contains one
single comment line. The file "mymean.R" contains a simple function that
computes the mean.

Situation A) [R CMD BUILD test] works fine and the tar-ball contains the
subdirectory "/inst/etc/" and the file "menus.txt".

Situation B) [R CMD INSTALL --build test] generates the "test_1.0.zip" file
without any error message. But: 1) This zip-file does neither contain the
"/etc" folder nor the "menus.txt" file. 2) The installation created the
folder "/test" in the library path /R-2.9.2/library/test/ , but this folder
is locked by WindowsXP. That is, the access is denied and can only be
resolved by re-defining the owner and the permission rights. 3) Having
removed the package from the library, and trying to install the zip-package
using "install from local zip files..." does the installation. But, the
"/etc" folder is empty; the file "menus.txt" is missing.

Is there a known problem/bug in the "R CMD INSTALL --build" process dealing
with the subdirectories "/inst" and "/etc" and the contents of the these
folders? How to resolve the problem?

Thanks 
Tobias

http://www.nabble.com/file/p25609569/source_test.zip source_test.zip 
-- 
View this message in context: 
http://www.nabble.com/R-CMD-INSTALL---build%3A-Folders--inst-and--etc-not-in-zip-file-and-WindowsXP-locks--library--package--etc--tp25609569p25609569.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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.


[R] Compiled Rcmdr Plugin package (zip) has no etc/menus.txt

2009-09-23 Thread Tobias Schoch

Dear Rcmdr users,
I use R-2.9.2, Rcmdr 1.5-1 and the latest Rtools bundle (and the html help
workshop) under Windows XP. I wrote a RcmdrPlugin for some important
functions of Thomas Lumley's "survey" package. 

Problem: Package compilation works without displaying any errors. That is
1) "R CMD build ..." works fine.

2) "R CMD INSTALL --build..." generates the zip-file (without error
message), but the folder "etc" and the "menus.txt" are missing in the zip.
Also the installed package in R-2.9.2/library/... does not contain "etc" and
"menus.txt". Thus, I am a bit confused, because the contents of the "etc"
folder should actually be included into the final package (as pointed out in
"writing R extensions").

Adding /etc/menus.txt to the zip-files fails since the MD5 (obviously) is
not correct any more. How can I generate packages as zip-files including the
Rcmdr-menu-structure.

Thanks
Tobias



-- 
View this message in context: 
http://www.nabble.com/Compiled-Rcmdr-Plugin-package-%28zip%29-has-no-etc-menus.txt-tp25531118p25531118.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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.