I've installed qdap:
install.packages("qdap")
It takes a while to donwload everything but the console fills up with all the downloads and at the end I get a message like this:
Warning in install.packages :
installation of package ‘qdap’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpeTzuKz/downloaded_packages’
> library(qdap)
Error in library(qdap) : there is no package called ‘qdap’
>
This SO post led me to try adding dependencies = TRUE but the issue remains.
Here's session info
sessionInfo():
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.2 LTS
Matrix products: default
BLAS: /usr/lib/openblas-base/libblas.so.3
LAPACK: /usr/lib/libopenblasp-r0.2.18.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0
Another post I found yesterday (cannot find it again now with a Google search) suggested I remove existing qdap files within my library directory, close my session, restart and fresh install. There was no package exactly called qdap but some with qdap in the name which I removed. My issue remained, I am unable to install qdap.
I'm not sure what other information to provide? Any help appreciated.
Here are the errors generated when attempting to install qdap:
./configure: line 3736: /usr/lib/jvm/default-java/jre/bin/java: No
such file or directory no configure: error: Java interpreter
'/usr/lib/jvm/default-java/jre/bin/java' does not work ERROR:
configuration failed for package ‘rJava’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/rJava’ Warning in install.packages : installation of package ‘rJava’ had
non-zero exit status ERROR: dependency ‘rJava’ is not available for
package ‘openNLPdata’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/openNLPdata’ Warning
in install.packages : installation of package ‘openNLPdata’ had
non-zero exit status ERROR: dependency ‘rJava’ is not available for
package ‘xlsxjars’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/xlsxjars’ Warning in install.packages : installation of package ‘xlsxjars’ had
non-zero exit status ERROR: dependency ‘rJava’ is not available for
package ‘venneuler’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/venneuler’ Warning
in install.packages : installation of package ‘venneuler’ had
non-zero exit status ERROR: dependencies ‘openNLPdata’, ‘rJava’ are
not available for package ‘openNLP’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/openNLP’ Warning in install.packages : installation of package ‘openNLP’ had
non-zero exit status ERROR: dependencies ‘rJava’, ‘xlsxjars’ are not
available for package ‘xlsx’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/xlsx’ Warning in install.packages : installation of package ‘xlsx’ had
non-zero exit status ERROR: dependencies ‘openNLP’, ‘venneuler’,
‘xlsx’ are not available for package ‘qdap’
* removing ‘/home/myname/R/x86_64-pc-linux-gnu-library/3.4/qdap’ Warning in install.packages : installation of package ‘qdap’ had
non-zero exit status
Since this looks like a rJava issue I found this post and tried the top voted answer in the terminal:
apt-get install r-cran-rjava
Resulted in:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I'm hoping theres a way around this without being a root user? I'm not as familiar with linux. I'm able to install other p packages.
There is a solution for this issue when you have no root access.
Download Java (make sure to install JDK) and install it inside your $HOME
You can do that as Oracle's Java is just a tar.gz package
Make sure to set JAVA_HOME
export JAVA_HOME=$HOME/opt/my_jdk_installation
Once you have Java you have to reconfigure R
Simply tell R where your Java is
R CMD javareconf \
JAVA_HOME=${JAVA_HOME} \
JAVA=${JAVA_HOME}/bin/java \
JAVAC=${JAVA_HOME}/bin/javac \
JAVAH=${JAVA_HOME}/bin/javah \
JAR=${JAVA_HOME}/bin/jar \
JAVA_LD_LIBRARY_PATH=${JAVA_HOME}/jre/lib/server \
JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux"
Since now, R should use your personal installation of Java. This way, you don't depend on sys admin.
Related
I am a medical doctor (so no computer science background at all) starting to get involved with bioinformatic analyses of big datasets and have used R on my private Windows laptop in the past without any problems.
My department now bought a new powerful Laptop to speed up the analyses and our bioinformatics core facility recommended using a Linux system (which I have never really used before), so now I have this great Ubuntu laptop but I'm getting a little frustrated with just setting up my R environment to start working. I've heard Linux needs some time to get used to and I'm up for the challenge and want to try to understand what I'm doing.
So the problem I have is that I cannot really install certain packages in R. As I said the laptop is brand new and installing R and RStudio was one of the first things I did without changing anything in the basic settings of the laptop. So I was very surprised that I keep getting errors in something as simple as installing those packages. For some reason some packages like
install.packages("tidyverse")
work fine, while others fail. So
install.packages("devtools")
gives me the following output
Installing package into ‘/home/jasper/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘systemfonts’, ‘textshaping’, ‘ragg’, ‘pkgdown’
trying URL 'https://cloud.r-project.org/src/contrib/systemfonts_1.0.4.tar.gz'
Content type 'application/x-gzip' length 81757 bytes (79 KB)
==================================================
downloaded 79 KB
trying URL 'https://cloud.r-project.org/src/contrib/textshaping_0.3.6.tar.gz'
Content type 'application/x-gzip' length 35722 bytes (34 KB)
==================================================
downloaded 34 KB
trying URL 'https://cloud.r-project.org/src/contrib/ragg_1.2.4.tar.gz'
Content type 'application/x-gzip' length 427579 bytes (417 KB)
==================================================
downloaded 417 KB
trying URL 'https://cloud.r-project.org/src/contrib/pkgdown_2.0.7.tar.gz'
Content type 'application/x-gzip' length 871465 bytes (851 KB)
==================================================
downloaded 851 KB
trying URL 'https://cloud.r-project.org/src/contrib/devtools_2.4.5.tar.gz'
Content type 'application/x-gzip' length 374718 bytes (365 KB)
==================================================
downloaded 365 KB
* installing *source* package ‘systemfonts’ ...
** package ‘systemfonts’ successfully unpacked and MD5 sums checked
** using staged installation
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfontconfig -lfreetype
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the fontconfig freetype2 library. Try installing:
* deb: libfontconfig1-dev (Debian, Ubuntu, etc)
* rpm: fontconfig-devel (Fedora, EPEL)
* csw: fontconfig_dev (Solaris)
* brew: freetype (OSX)
If fontconfig freetype2 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a fontconfig freetype2.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘systemfonts’
* removing ‘/home/jasper/R/x86_64-pc-linux-gnu-library/4.2/systemfonts’
Warning in install.packages :
installation of package ‘systemfonts’ had non-zero exit status
ERROR: dependency ‘systemfonts’ is not available for package ‘textshaping’
* removing ‘/home/jasper/R/x86_64-pc-linux-gnu-library/4.2/textshaping’
Warning in install.packages :
installation of package ‘textshaping’ had non-zero exit status
ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’
* removing ‘/home/jasper/R/x86_64-pc-linux-gnu-library/4.2/ragg’
Warning in install.packages :
installation of package ‘ragg’ had non-zero exit status
ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’
* removing ‘/home/jasper/R/x86_64-pc-linux-gnu-library/4.2/pkgdown’
Warning in install.packages :
installation of package ‘pkgdown’ had non-zero exit status
ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’
* removing ‘/home/jasper/R/x86_64-pc-linux-gnu-library/4.2/devtools’
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpZcPwU9/downloaded_packages’
After looking online for a couple of days now, I believe that there is a problem with the directories or access to them. When I enter
.libPaths()
in R, it gives me
[1] "/home/jasper/R/x86_64-pc-linux-gnu-library/4.2" "/usr/local/lib/R/site-library"
[3] "/usr/lib/R/site-library" "/usr/lib/R/library"
So I started looking into this and tried to modify R_LIBS_USER part of the Renviron file as described here (How do I change the default library path for R packages) without any success.
When I tried installing another package, I got the message that the path is not writable and I read this might be a permission problem. So I used used chmod -R 777 on the four directories (which as far as I understood gives me all permissions to these folders) that showed up with .libPaths(), but no success either. Repeated reinstallation of R and RStudio did not help either.
Unfortunately my computer science skills quickly find their limit (even working with the terminal to be honest). Since I honestly do not really understand what I am doing and would like to do so while changing files in the root of this new laptop, I am hoping that you can help me out. Quitting and changing back to Windows is not an option for my ego :D .
Here is my sessionInfo():
R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=de_DE.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=de_DE.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=de_DE.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.2 fastmap_1.1.0 cli_3.4.1 htmltools_0.5.4 tools_4.2.2 rstudioapi_0.14 yaml_2.3.6 rmarkdown_2.19
[9] knitr_1.41 xfun_0.35 digest_0.6.31 rlang_1.0.6 evaluate_0.19
I would really appreciate your help!
Thanks a lot,
Jasper
I had this same problem recently when trying to install devtools on a kali linux virtual box.
The way I got around it was to install dev tool directly from the linux command line (terminal) using:
sudo apt-get install r-cran-devtools
This should work on Ubuntu too. Good luck.
I initially downloaded the data.table package from CRAN using:
install.packages()
It downloaded version 1.9.4, after hitting a few speed bumps and going through this website I figured I had to download the latest version from github. In order to do that I tried to download to "devtools" but I was unsuccessful. Following is the error I got:
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/trader/R/x86_64-pc-linux-gnu-library/3.2/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/trader/R/x86_64-pc-linux-gnu-library/3.2/RCurl’
Warning in install.packages :
installation of package ‘RCurl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/trader/R/x86_64-pc-linux-gnu-library/3.2/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘rversions’
* removing ‘/home/trader/R/x86_64-pc-linux-gnu-library/3.2/rversions’
Warning in install.packages :
installation of package ‘rversions’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘RCurl’, ‘rversions’ are not available for package ‘devtools’
* removing ‘/home/trader/R/x86_64-pc-linux-gnu-library/3.2/devtools’
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpMtxhRg/downloaded_packages’
So I tried another approach and downloaded the .tar.gz file from https://cran.r-project.org/web/packages/data.table/index.html.
Then using:
> install.packages("~/Downloads/data.table_1.9.6.tar.gz", repos = NULL, type = "source")
The download was successful but I got the following error when trying to load it:
> library("data.table", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.2")
data.table 1.9.6 For help type ?data.table or https://github.com/Rdatatable/data.table/wiki
The fastest way to learn (by data.table authors): https://www.datacamp.com/courses/data-analysis-the-data-table-way
Attaching package: ‘data.table’
The following object is masked from ‘package:xts’:
last
Error in fetch(key) :
lazy-load database '/home/trader/R/x86_64-pc-linux-gnu-library/3.2/data.table/help/data.table.rdb' is corrupt
In addition: Warning message:
In fetch(key) : internal error -3 in R_decompress1
My session info is as follows:
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu precise (12.04.5 LTS)
locale:
[1] LC_CTYPE=en_IN.UTF-8 LC_NUMERIC=C LC_TIME=en_IN.UTF-8 LC_COLLATE=en_IN.UTF-8 LC_MONETARY=en_IN.UTF-8 LC_MESSAGES=en_IN.UTF-8
[7] LC_PAPER=en_IN.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_IN.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.9.6 plyr_1.8.3 git2r_0.11.0 ISLR_1.0 bigtabulate_1.1.2 biglm_0.9-1 DBI_0.3.1 biganalytics_1.1.1
[9] bigmemory_4.4.6 BH_1.58.0-1 bigmemory.sri_0.1.3 highfrequency_0.4 xts_0.9-7 zoo_1.7-12
loaded via a namespace (and not attached):
[1] Rcpp_0.12.0 lattice_0.20-33 chron_2.3-47 grid_3.2.2 magrittr_1.5 stringi_1.0-1 reshape2_1.4.1 tools_3.2.2 stringr_1.0.0
I am not sure what I am supposed to do now. Can someone please help?
Looks like corrupted installation.
Close all sessions
Start single clean R session in console (to exclude any IDE issues)
Install development version from github repository directly using:
install.packages("data.table", repos = "https://Rdatatable.github.io/data.table")
After installation you can optionally verify all test by
library(data.table)
test.data.table()
If you want to install latest CRAN release just skip repos argument to install.packages.
I've installed R-devel on Ubuntu following this guide. When trying to install magrittr with install.packages("magrittr") I'm getting this:
* installing *source* package ‘magrittr’ ...
** package ‘magrittr’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'checkCompilerOptions' not found
Calls: ::: -> get
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/magrittr’
The downloaded source packages are in
‘/tmp/RtmpagwvBj/downloaded_packages’
Warning message:
In install.packages("magrittr") :
installation of package ‘magrittr’ had non-zero exit status
The single other stackoverflow question refering to this error didn't help me. Can anyone help?
What I'm really trying to do is to install the latest development version of the Gviz package. In order to do that I must use the development version of bioconductor and R. Down in the dependency tree for Gviz comes magrittr.
My sessionInfo():
R Under development (unstable) (2016-02-18 r70185)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 15.10
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=nb_NO.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=nb_NO.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=nb_NO.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=nb_NO.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] tools_3.3.0 tcltk_3.3.0
I had the same problem installing the raster package. I found out here that the problem was a conflict between library directories exported by the second script of the guide you are mentionning:
#!/bin/bash
export R_LIBS_SITE=${R_LIBS_SITE-'/usr/lib/R-devel/lib/R/library:/usr/local/lib/R/site-library:/usr/lib/R/site-library::/usr/lib/R/library'}
export PATH="/usr/local/lib/R-devel/bin:$PATH"
R "$#"
So I removed the library folders not related to my R-devel instance:
#!/bin/bash
export R_LIBS_SITE=${R_LIBS_SITE-'/usr/lib/R-devel/lib/R/library:/usr/local/lib/R/site-library'}
export PATH="/usr/local/lib/R-devel/bin:$PATH"
R "$#"
And it finally worked.
I was able to install Gviz! This is what got me there:
I tried using devtools::install_github("Bioconductor-mirror/Gviz") to install Gviz instead of doing it with biocLite("Gviz"). This got me the checkCompilerOptions error, but now with the package matrixStats.
I installed matrixStats using devtools::install_github("HenrikBengtsson/matrixStats"). This worked.
At this point I tried installing magrittr again, using install.packages("magrittr"). It worked somehow!
I could now install Gviz with devtools::install_github("Bioconductor-mirror/Gviz")
I still have no idea about the checkCompilerOptions error, and would appreciate any ideas.
I'm having problem installing any package, also from package archive. In this case showing error trying to install ggplot2:
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/juanchi/R/x86_64-pc-linux-gnu-library/3.2/stringi/libs/stringi.so':
libicui18n.so.52: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio
ERROR: lazy loading failed for package ‘ggplot2’
* removing ‘/home/juanchi/R/x86_64-pc-linux-gnu-library/3.2/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpVU9aIn/downloaded_packages’
This is my session Info
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 15.10
locale:
[1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C LC_TIME=pt_BR.UTF-8
[4] LC_COLLATE=es_ES.UTF-8 LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=es_ES.UTF-8
[7] LC_PAPER=pt_BR.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] rsconnect_0.4.1.4 tools_3.2.2
Thanks in advance!!
Your upgrade to Ubuntu 15.10 meant that the ICU library went from version 52 to a newer version (55, if I recall). But the stringi package was built against 52, and is now broken. That can happen to your R packages when they are outside of the Ubuntu package management system.
So you need to re-install stringi, which is required by ggplot2, and then ggplot2 will install and also load, avoiding the erorr you.
You could avoid these upgrade problems by using the pre-built versions of ggplot2 and its dependencies: do sudo apt-get install r-cran-ggplot2.
Thank you Dirk, your advice to install the package via the ubuntu terminal solved my problem as well: I had an almost identical error message when I was trying to install reshape2 on Ubuntu 15.10.
I just,
1) uninstalled the currently installed version of reshape2 through the R terminal (if you use R-Studio you can also do this in the "packages" window where the packages are listed),
2) run sudo apt-get install r-cran-reshape2 in the ubuntu terminal,
3) restarted the computer.
I'm trying to install slidify but it returns an error.
I suppose it's caused to the directory name.
> library(devtools)
> install_github('slidify', 'ramnathv')
Installing github repo(s) slidify/master from ramnathv
Downloading slidify.zip from https://github.com/ramnathv/slidify/archive/master.zip
Installing package from C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx/slidify.zip
Installing slidify
"C:/Program Files/R/R-3.0.1/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx\slidify-master" \
--library="C:/Users/matte_000/Documents/R/win-library/3.0" --with-keep.source -- install-tests
"C:\Program" 'R' is not recognized as an internal or external command, operable program or batch file
Error: Command failed (1)
> install_github('slidifyLibraries', 'ramnathv')
Installing github repo(s) slidifyLibraries/master from ramnathv
Downloading slidifyLibraries.zip from https://github.com/ramnathv/slidifyLibraries/archive/master.zip
Installing package from C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx/slidifyLibraries.zip
Installing slidifyLibraries
"C:/Program Files/R/R-3.0.1/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\matte_000\AppData\Local\Temp\RtmpkfDfkx\slidifyLibraries-master" \
--library="C:/Users/matte_000/Documents/R/win-library/3.0" --with-keep.source --install-tests
"C:\Program" 'R' is not recognized as an internal or external command, operable program or batch file
Error: Command failed (1)
I'm new at R and I tried even the following code to install it manually:
> pkgs = c("slidify","slidifyLibraries")
> install.packages(pkgs,lib="C:/Users/matte_000/Documents/R/win-library/3.0","https://github.com/ramnathv/slidify/archive/master.zip", repos = NULL)
Warning in install.packages :
packages ‘slidify’, ‘slidifyLibraries’ are not available (for R version 3.0.1)
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
unable to access index for repository https://github.com/ramnathv/slidify/archive/master.zip
Warning in install.packages :
packages ‘slidify’, ‘slidifyLibraries’ are not available (for R version 3.0.1)
Finally if it helps I post the result of sessionInfo(), running on Windows 8 x64:
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 LC_MONETARY=Italian_Italy.1252
[4] LC_NUMERIC=C LC_TIME=Italian_Italy.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_1.3
loaded via a namespace (and not attached):
[1] digest_0.6.3 evaluate_0.4.4 httr_0.2 memoise_0.1 parallel_3.0.1 RCurl_1.95-4.1 stringr_0.6.2
[8] tools_3.0.1 whisker_0.3-2
Do you have any idea to fix it?
I google it but didn't find anything helpful
try this method, Install slidifyLibraries from Windows command prompt
http://thiagosilva.wordpress.com/2013/02/17/installing-slidify-on-a-windows-machine/