[Rd] building source package in R run within Emacs under Windows.
Vadim Ogranovich
vogranovich at jumptrading.com
Tue Jul 21 17:13:26 CEST 2009
Dear R-devel,
I installed R-2.9.1 on the 'y:' drive which happens to be mounted to an IBRIX file system.
I also downloaded and installed the Rtools bundle recommended for 2.9x.
When I build a source package launching R via RGui.exe it seems to work fine:
## setting path according to "Appendix E The Windows toolset"
> Sys.setenv(PATH="c:/Rtools/bin;c:/Rtools/perl/bin;c:/Rtools/MinGW/bin;c:/cygwin/bin;c:/progra~1/htmhe~1;y:/R/R-2.9.1/bin;c:/windows;c:/windows/system32")
> install.packages("c:/R/vmisc", repos=NULL, type="source", lib="y:/R/vogranovich/library")
*** 'hhc.exe' not found: not building CHM help
* Installing *source* package 'vmisc' ...
** libs
making DLL ...
... done
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
>>> Building/Updating help pages for package 'vmisc'
Formats: text html latex example
Note: removing empty section \usage in file 'vmisc.Rd'
vmisc text html latex example
** building package indices ...
** MD5 sums
* DONE (vmisc)
However when I run the same commands in R launched via Rterm under Emacs (ESS mode) I get this error:
> Sys.setenv(PATH="c:/Rtools/bin;c:/Rtools/perl/bin;c:/Rtools/MinGW/bin;c:/cygwin/bin;c:/progra~1/htmhe~1;y:/R/R-2.9.1/bin;c:/windows;c:/windows/system32")
> install.packages("c:/R/vmisc", repos=NULL, type="source", lib="y:/R/vogranovich/library")
[1] "y:/R/vogranovich/library" "y:/R/R-2.9.1/library"
*** 'hhc.exe' not found: not building CHM help
* Installing *source* package 'vmisc' ...
** libs
making DLL ...
... done
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
Can't locate R/Rdconv.pm in @INC (@INC contains: y /R/R-2.9.1/share/perl;y /R/R-2.9.1/share/perl;y /R/R-2.9.1/share/perl; /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at y:/R/R-2.9.1/share/perl/build-help.pl line 21.
BEGIN failed--compilation aborted at y:/R/R-2.9.1/share/perl/build-help.pl line 21.
ERROR: building help failed for package 'vmisc'
* Removing 'y:/R/vogranovich/library/vmisc'
* Restoring previous 'y:/R/vogranovich/library/vmisc'
Warning message:
In install.packages("c:/traders/titan/R/vmisc", repos = NULL, type = "source", :
installation of package 'c:/traders/titan/R/vmisc' had non-zero exit status
It seems that perl's @INC is corrupted, but I don't know how to fix it.
Here is the Emacs version info:
This is GNU Emacs 22.0.96.1 (i386-mingw-nt5.1.2600)
of 2007-03-21 on LENNART-69DE564 (patched)
Did anyone have this problem? I understand that the process of building source packages in Windows is rather fragile so I'll be happy to live with using Rgui, but I am asking just in case someone may know.
Thanks,
Vadim
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. Jump Trading, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
More information about the R-devel
mailing list