svn - Cannot install R-forge package using install.packages -



svn - Cannot install R-forge package using install.packages -

this, question, is, asked, over, and, over, and, over, on r-sig-finance mailing list, not think has been asked on stackoverflow.

it goes this:

where can obtain latest version of bundle xyz hosted on r-forge? tried install install.packages, happened:

> install.packages("xyz",repos="http://r-forge.r-project.org") warning message: bundle ‘xyz’ not available (for r version 2.15.0)

looking on r-forge website xyz, see bundle failed build. therefore, there no link download source. there other way source code? 1 time source code, how can turn bundle can load library("xyz")?

r-forge may fail build bundle few different reasons. documentation has not been updated reflect recent changes in code. or, of dependencies not available @ build time.

you can checkout source code using svn. first, search project on r-forge website , go project home page -- illustration http://r-forge.r-project.org/projects/returnanalytics/ click scm link page http://r-forge.r-project.org/scm/?group_id=579

this page tell command utilize checkout project. in case get

this project's svn repository can checked out through anonymous access next command(s).

svn checkout svn://svn.r-forge.r-project.org/svnroot/returnanalytics/

if on windows, want download , install tortoisesvn

once have installed tortoisesvn, can right click in windows explorer window , select "svn checkout". in "url of repository:" field, come in except "svn checkout " part of command found on r-forge. in case, you'd come in "svn://svn.r-forge.r-project.org/svnroot/returnanalytics/".

when click ok, project downloaded current directory.

if on unix-alike scheme (or if installed command line client tools when installed tortoisesvn windows, not default), can type command r-forge gave in terminal (system terminal, not r terminal)

svn checkout svn://svn.r-forge.r-project.org/svnroot/returnanalytics/

that create new directory under current working directory contains of files in package. in top level of directory subdirectory called "pkg". particular project (returnanalytics) contains more 1 package.

ls returnanalytics/pkg #factoranalytics mpo papages performanceanalytics portfolioanalytics

but r-forge projects have single package. e.g.

svn checkout svn://svn.r-forge.r-project.org/svnroot/random/ #checked out revision 14. ls random/pkg #description inst man namespace r

now have local re-create of code, if able install package, have build first.

a word of caution: since r-forge failed build package, there chance there problems package. therefore, if build it, may find things not work expected. in particular, there missing or incomplete documentation.

if on unix-alike system, bundle can built , installed relatively easily. multi-package project returnanalytics, if want install, e.g. portfolioanalytics package, can this

r --vanilla cmd install --build returnanalytics/pkg/portfolioanalytics

"portfolioanalytics" name of directory contains bundle want build/install. single-package project, can build , install this

r --vanilla cmd install --build random/pkg

if build/install bundle on windows, see this question , follow two links @joshuaulrich provided

more info can found in r installation , administration, the r-forge user manual, , the svn manual.

r svn install package r-forge

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -