[R] Installing packages from source code

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Apr 22 17:41:47 CEST 2005


huan.huang at uk.bnpparibas.com wrote:

> Hi everybody,
> 
> 
> 
> I have trouble in installing packages from source code by following Section
>        5.1 in manual R-admin.pdf . I am using R 2.1.0 and Win NT.
> 
> 
> 
> Following the Windows toolset section in the manual, I download the tool
>        set package from: http://www.murdoch-sutherland.com/Rtools/tools.zip
>        and unzip under C:\tools
> 
> I also downloaded Perl (Windows Port) and installed it.
> 
> I downloaded source code of abind package (abind.1.1-0.tar.gz) to C:\, as
>        an example.
> 
> 
> 
> 1. I tried to install abind package in Rgui by typing in:
> install.packages(repos=NULL, pkgs='c:/abind.1.1-0.tar.gz', type='source', lib = 'c:/program files/r/rw2010/library/')
> Warning message:
> installation of package 'c:/abind.1.1-0.tar.gz' had non-zero exit status in: install.packages(repos = NULL, pkgs = "c:/abind.1.1-0.tar.gz",

Underscore in package name: abind_1.1-0.tar.gz

You might have a 00lock file in your library dir now that you have to 
delete before further processing .....



> 
> 2. I then tried to install abind package in CMD:
> r cmd install -l "c:/progra~1/r/rw2010/library/" "c:/abind.1.1-0.tar.gz"

a) Capitalization!!!
b) underscore in package name!!!


Hence the following sghould be sufficient (called from c:\):

   R CMD INSTALL abind_1.1-0.tar.gz

or full:

   R CMD INSTALL -l c:/progra~1/r/rw2010/library/ c:/abind.1.1-0.tar.gz


Uwe Ligges


> ARGUMENT 'cmd' __ignored__
> 
> ARGUMENT 'install' __ignored__
> 
> WARNING: unknown option -l
> 
> ARGUMENT 'c:/progra~1/r/rw2010/library/'
> 
> ARGUMENT 'c:/abind.1.1-0.tar.gz' __ignor
> 
> 
> R : Copyright 2004, The R Foundation for
> Version 2.0.1  (2004-11-15), ISBN 3-9000
> 
> R is free software and comes with ABSOLU
> You are welcome to redistribute it under
> Type 'license()' or 'licence()' for dist
> 
> R is a collaborative project with many c
> Type 'contributors()' for more informati
> 'citation()' on how to cite R or R packa
> 
> Type 'demo()' for some demos, 'help()' f
> 'help.start()' for a HTML browser interf
> Type 'q()' to quit R.
> 
> [Previously saved workspace restored]
> 
> 
> The purpose of installing package from source code is that I hope it can create those rds files in meta directory automatically.
> I wonder if I miss anything here. Can anyone help me out please?
> Thanks alot,
> Huan
> 
> 
> 
> This message and any attachments (the "message") is\ intende...{{dropped}}
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list