[R] Help with installing a .tar.gz package on windows
Lucy Leigh
Lucy.Leigh at newcastle.edu.au
Tue Jul 9 05:18:45 CEST 2013
Great thank you - are there any resources that step through how to use
RTools to compile the
source package and install it in R on (64-bit windows) ?
>>> Berend Hasselman <bhh at xs4all.nl> 8/07/2013 6:38 pm >>>
On 08-07-2013, at 02:15, "Lucy Leigh" <Lucy.Leigh at newcastle.edu.au>
wrote:
> Hi,
> I have a source package that isn't available as a windows zip file.
Can
> anyone explain to me how I can install this on my windows R
platform?
> When I use the following code:
> install.packages("PReMiuM_3.0.21.tar.gz", type = "source")
>
>
Where did you get that version from?
CRAN has version 3.0.20 and that is available as a binary Windows
package (.zip).
As for the error message: you have to have Rtools installed to compile
source packages.
Berend
> I get this error message:
>
>
>
> * installing *source* package 'PReMiuM' ...
> ** libs
>
> *** arch - i386
> ERROR: compilation failed for package 'PReMiuM'
> * removing 'C:/Program Files/R/R-3.0.1/library/PReMiuM'
> Warning messages:
> 1: running command '"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL
-l
> "C:\Program Files\R\R-3.0.1\library" "PReMiuM_3.0.21.tar.gz"' had
status
> 1
> 2: In install.packages("PReMiuM_3.0.21.tar.gz", type = "source") :
> installation of package ‘PReMiuM_3.0.21.tar.gz’ had non-zero
exit
> status
>>
>
> Thanks for any help anyone can give me,
> Lucy
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list