Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Sxslt package on Windows? R

In relation to this question, I need to install Sxslt package in R on a windows platform. I used RStudio to compile the package from the source, but it encountered an error. It returned a message about defining LIB_XSLT. Please see the log below:

> install.packages("Sxslt", repos = "http://www.omegahat.org/R", type="source")
Installing package(s) into ‘local/R/win-library/2.15’
(as ‘lib’ is unspecified)
trying URL 'www.omegahat.org/R/src/contrib/Sxslt_0.91-1.tar.gz'
Content type 'application/x-gzip' length 112790 bytes (110 Kb)
opened URL
downloaded 110 Kb

* installing *source* package 'Sxslt' ...
Please define LIB_XSLT
ERROR: configuration failed for package 'Sxslt'
* removing 'local/R/win-library/2.15/Sxslt'
Warning in install.packages :
  running command 'local/bin/i386/R CMD INSTALL -l "local/R/win-library/2.15" local/downloaded_packages/Sxslt_0.91-1.tar.gz' 
had status 1
Warning in install.packages :
  installation of package ‘Sxslt’ had non-zero exit status

The downloaded source packages are in
    ‘local\downloaded_packages’ 

Thanks.

like image 986
imriss Avatar asked Jul 03 '13 14:07

imriss


People also ask

How do I manually install a package in R?

Go into R, click on Packages (at the top of the R console), then click on "Install package(s) from local zip files", then find the zip file with arm from wherever you just saved it. Do the same thing to install each of the other packages you want to install.


1 Answers

Sxslt package which were provided by Omega Project is outdated now. It is better to use xslt package available at CRAN.

install.packages("xslt")
like image 96
Artem Avatar answered Oct 25 '22 19:10

Artem