Dear all, I seem to be unable to check a source package since I upgraded R to 2.3.0 (Ubuntu Linux 5.1). I get this: * checking package dependencies ... ERROR> tools:::.check_package_depends("/home/adi/Work/QCAGUI")I have even tried with R-patched, same result. My Renviron does specify the path to the installed packages (and all depending packages are installed): R_LIBS=${R_LIBS-'/home/adi/Installed/R/site-library:/usr/local/lib/R/site-library:/usr/local/lib/R/library'} Is there something changed about defining R_LIBS? Thank you in advance, Adrian -- Adrian DUSA Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101
I am having a similar problem with Windows. I first tried R-2.3.0, then following this post, tried R-2.2.1. In both versions, I can't get anything useful with the cygwin shell inside emacs. I get valid error messages from cygwin in a standalone cygwin window and from the msdos shell, either standalone or inside emacs. Here is the messages from the cygwin shell. The ls -alF for all the files mentioned look good. I don't know where the "access is denied" message is coming from. Perhaps someone can help interpret them. rmh at RMH-HP ~/HH-R.package $ PATH=.:/cygdrive/c/progra~1/R/tools/bin:/cygdrive/c/MinGW/bin:/cygdrive/c/Perl /bin:/cygdrive/c/texmf/miktex/bin:/cygdrive/c/progra~1/R/R-2.3.0/bin:/usr/local/ bin:/usr/bin:/cygdrive/c/gs/gs8.00/bin:/cygdrive/c/gs/gs8.00/lib:/cygdrive/c/win dows:/cygdrive/c/windows/system32 rmh at RMH-HP ~/HH-R.package $ rmh at RMH-HP ~/HH-R.package $ R_HOME=c:/progra~1/R/R-2.3.0 rmh at RMH-HP ~/HH-R.package $ rmh at RMH-HP ~/HH-R.package $ export PATH R_HOME rmh at RMH-HP ~/HH-R.package $ Rcmd check HH * checking for working latex ...Access is denied. NO * using log directory 'c:/HOME/rmh/HH-R.package/HH.Rcheck' Access is denied. * using * checking for file 'HH/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'HH' version '1.0' * checking package dependencies ...Access is denied. OK * checking if this is a source package ... OK * checking whether package 'HH' can be installed ...Access is denied. Error: cannot open file 'c:/HOME/rmh/HH-R.package/HH.Rcheck/00install.out' for re ading rmh at RMH-HP ~/HH-R.package $ Rcmd build HH * checking for file 'HH/DESCRIPTION' ... OK * preparing 'HH': * checking DESCRIPTION meta-information ...Access is denied. OK * cleaning src * removing junk files Access is denied. Access is denied. Access is denied. Error: cannot open file 'HH/DESCRIPTION' for reading rmh at RMH-HP ~/HH-R.package $
Thank you for your comments. After further investigation and off-line correspondence with Duncan Murdoch, I found that the principal problem was a bad unzip from cygwin. It was leaving the .exe files with permission 666 instead of the correct 777. I changed unzip programs and everything now works inside the cygwin *shell* buffer inside emacs. There was a secondary problem that the environment variables inside the emacs buffer running cygwin needed adjustment. These three changes are needed inside the bash running inside emacs to make the command Rcmd check packagename work: PATH=.:/cygdrive/c/progra~1/R/tools/bin:/cygdrive/c/MinGW/bin:/cygdrive/c/Perl/bin:/cygdrive/c/texm f/miktex/bin:/cygdrive/c/progra~1/R/R- 2.3.0/bin:/cygdrive/c/progra~1/htmlhe~1:/usr/local/bin:/usr/bin:/cygdrive/c/gs/gs8.00/bin:/cygdrive /c/gs/gs8.00/lib:/cygdrive/c/windows:/cygdrive/c/windows/system32 R_HOME=c:/progra~1/R/R-2.3.0 COMSPEC=c:\windows\system32\cmd.exe ##this is necessary and in DOS notation In order to make C-c C-p (equivalently, clicking preview) work on .Rd files, I needed the following emacs statements (setenv "PATH" ".;c:\\progra~1 \\R\\tools\\bin;c:\\MinGW\\bin;c:\\Perl\\bin;c:\\texmf\\miktex\\bin;c:\\progra~1\\R\\R-2.3.0 \\bin;c:\\progra~1\\htmlhe~1;c:\\gs\\gs8.00\\bin;c:\\gs\\gs8.00 \\lib;c:\\windows;c:\\windows\\system32") (setenv "R_HOME" "c:\progra~1\R\R-2.3.0") (setenv "COMSPEC" "c:\windows\system32\cmd.exe") My mailer folds lines at about 100 characters. Receiving mail programs might fold them again. Each of those PATH statements is a single line. Please unfold them before using them. Rich