[R] How to install .tar.gz source package in Windows XP 32-bit operational system
istazahn at gmail.com
Wed Feb 13 21:27:02 CET 2013
On Wed, Feb 13, 2013 at 3:09 PM, David Winsemius <dwinsemius at comcast.net> wrote:
> On Feb 13, 2013, at 9:25 AM, Marino David wrote:
>> Dear all mailing listers,
>> I failed in install source packages in Windows system. I have installed
>> Rtools in order to install the source package based on the discussion
>> available on the following link:
>> By the way, only installing the Rtools is ok, isn't it? Do I need to run
>> the Rtools?
>>> install.packages("adapt_1.0-4.tar.gz", type="source", repos=NULL)
Presumably the OP knew this, since there were able to obtain the
package source already. However, reading the README file in the
package source is instructive. Pasted here for convenience to the OP:
This code contains an S function and supporting C and Fortran code for
adaptive quadrature. The underlyling fortran code is purported to
work in from 2 to 20 dimensions. The code is set up to dynamically
load from a central library area. If you can not do dynamic loading,
you may need to build a staticly loaded version. The adapt S function
calls load.if.needed to do the dynamic loading. You will have to
change the functions used here (probably to call library.dynam).
To install the source, type
in this directory.
Move the resulting sadapt.o into (say ~s/library/cmu ). Read the file
adapt.SS into S. Two functions (adapt, and load.if.needed) will be
created. Move these into ~/library/cmu/.Data. Finally move
./.Data/.Help/adapt into ~s/library/cmu/.Data/.Help/adapt.
S code written by Michael Meyer (mikem at andrew.cmu.edu).
So this looks really old. If I were the OP I would start looking for
>> * installing *source* package 'adapt' ...
>> ** Creating default NAMESPACE file
>> ** libs
>> ERROR: compilation failed for package 'adapt'
>> * removing 'C:/Program Files/R/R-2.15.2/library/adapt'
>> 1: running command'C:/PROGRA~1/R/R-215~1.2/bin/i386/R CMD INSTALL -l
>> "C:/Program Files/R/R-2.15.2/library" "adapt_1.0-4.tar.gz"'had
>> status 1
>> 2: In install.packages("adapt_1.0-4.tar.gz", type = "source", repos = NULL)
>> installation of package ¡®adapt_1.0-4.tar.gz¡¯ had non-zero exit status
>> Any suggestion will be greatly appreciated.
>> Kind regards,
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> David Winsemius
> Alameda, CA, USA
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help