Installing package "icd9" in R from Github with Rtools ERROR - r

I'm trying to install package "icd9" from Github repository.
First I've installed devtools package.
Then
devtools::install_github("jackwasey/icd9")
After this line I have following report:
Downloading GitHub repo jackwasey/icd9#master
Installing icd9
"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" --no-site-file --no-environ --no-save \
--no-restore CMD INSTALL \
"C:/Users/rubal/AppData/Local/Temp/RtmpEHgKOa/devtools1fd4455976bc/jackwasey-
icd9-ad36b5b" \
--library="C:/Users/rubal/Documents/R/win-library/3.2" --install-tests
* installing *source* package 'icd9' ...
Предупреждение: работающая команда 'sh ./configure.win' имеет статус 127
ERROR: configuration failed for package 'icd9'
* removing 'C:/Users/rubal/Documents/R/win-library/3.2/icd9'
Error: Command failed (1)
What I do wrong? How could I install this package?

Latecomer to this question, but as I'm the author of the said package, I should let you know that 'icd9' is deprecated. Now all ICD-9 and ICD-10 functions are contained in the much slicker, much faster icd package on CRAN.

Related

I'm having some trouble to install the tscompdata package in my r

I'm trying to install the tscompdata package to R. This is a new one.
The installation is by the "devtools" package, using the following command:
devtools::install_github("robjhyndman/tscompdata")
and the output is:
Downloading GitHub repo robjhyndman/tscompdata#master from URL
https://api.github.com/repos/robjhyndman/tscompdata/zipball/master
Installing tscompdata '/usr/lib/R/bin/R' --no-site-file --no-environ
--no-save --no-restore --quiet CMD INSTALL \ '/tmp/RtmpjrsG7p/devtools45d14034ea55/robjhyndman-tscompdata-0329cec'
\ --library='/home/diego/R/x86_64-pc-linux-gnu-library/3.4'
--install-tests
* installing *source* package ‘tscompdata’ ...
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading Error : object ‘mstl’ is not exported by 'namespace:forecast' ERROR: lazy loading
failed for package ‘tscompdata’
* removing ‘/home/diego/R/x86_64-pc-linux-gnu-library/3.4/tscompdata’ Installation failed: Command failed (1)
did someone face this problem too?

R library(qdap) installation error

I am having difficulty installing the qdap library, see below:
I installed the Java library first, and then the qdap library:
Sys.setenv(JAVA_HOME='C:\Program Files (x86)\Java\jre7')
library(rJava)
then the devtools library:
library(devtools)
install_github("trinker/qdapDictionaries")
install_github("trinker/qdapRegex")
install_github("trinker/qdapTools")
install_github("trinker/qdap")
The other installations before qdap go fine, but at qdap this error is generated:
install_github("trinker/qdap")
Downloading github repo trinker/qdap#master
Installing qdap
Skipping 3 packages ahead of CRAN: qdapDictionaries, qdapRegex, qdapTools
"C:/PROGRA~1/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore \
CMD INSTALL \
"C:/Users/Seema/AppData/Local/Temp/RtmpMdVHCQ/devtools101432a84788/trinker-qdap-85cbe87" \
--library="C:/Users/Seema/Documents/R/win-library/3.2" --install-tests
installing source package 'qdap' ...
** R
** data
*** moving datasets to lazyload DB
** inst
** tests
** preparing package for lazy loading
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
Error: Command failed (1)
What dependent libraries is it looking for? Any help highly appreciated.

installation of package ‘devtools’ had non-zero exit status on Ubuntu

I'm trying to install devtools in a PowerPC with a R version 3.1.1 but failed at the end because the curl library:
...
** testing if installed package can be loaded Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/path
to/R/powerpc-unknown-linux-gnu-library/3.1/curl/libs/curl.so': /path
to/R/powerpc-unknown-linux-gnu-library/3.1/curl/libs/curl.so:
undefined symbol: BSWAP_32 Error: loading failed Execution halted
ERROR: loading failed
* removing ‘/path to/R/powerpc-unknown-linux-gnu-library/3.1/curl’ ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/path to/R/powerpc-unknown-linux-gnu-library/3.1/httr’ ERROR: dependency ‘curl’ is not available for package ‘rversions’
* removing ‘/path to/R/powerpc-unknown-linux-gnu-library/3.1/rversions’ ERROR:
dependencies ‘httr’, ‘rversions’ are not available for package
‘devtools’
* removing ‘/path to/R/powerpc-unknown-linux-gnu-library/3.1/devtools’
The downloaded source packages are in
‘/tmp/RtmpD0yE63/downloaded_packages’ Warning messages: 1: In
install.packages("devtools") : installation of package ‘curl’ had
non-zero exit status 2: In install.packages("devtools") :
installation of package ‘httr’ had non-zero exit status 3: In
install.packages("devtools") : installation of package ‘rversions’
had non-zero exit status 4: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
I've already installed libcurl4-gnutls-dev and libcurl4-openssl-dev and the libcurl version is 7.38.0.
Does anyone know a fix to this? Thanks ;)
The same problem happened to me when I was trying to install "devtools" package on a new machine with Ubuntu 16.04 system.
I tried many answers including the adopted one above, but I still couldn't solve the problem until I noticed another warning information "(as ‘lib’ is unspecified)". Then I realized that I was running R as a normal user while the R base is installed by root. It means the package "devtools" couldn't be installed into the default R library folder and possibly couldn't use some dependent packages. Then the solution became very easy: run R as root user and then install "devtools".
Following the instructions of Dean Attali (https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on-ubuntu-14-04), I summarize the steps below. Just run them in a terminal.
$ sudo apt-get -y install libcurl4-gnutls-dev libxml2-dev libssl-dev
$ sudo su
$ R
> install.packages('devtools', repos='http://cran.rstudio.com/')
That's it. Since the package is installed by root, it can be used by all users of the system.
For Curl use:
apt-get -y build-dep libcurl4-gnutls-dev
apt-get -y install libcurl4-gnutls-dev
And you should update the R version to R-3.1.2
wget http://cran.r-project.org/src/base/R-3/R-3.1.2.tar.gz
I m using Ubuntu 16.04 and this is how I solved this issue:
aptitude install libssl-dev
then aptitude packg manage will allow you to choose the right version which is required for installation of devtools.
Repeat the same for
aptitude libcurl4-gnutls-dev
aptitude libxml2-dev
Finally, install this libgit2 lib
devtools::install_github('ropensci/git2r')
devtools::load_all()
R CMD INSTALL git2r
I could not solve it with apt-get packg manager. Thats all :) !
This error was happening when I was using 3.0.2. I updated the R, now It is fine. I also spent the one day to find the solution. I tried the all the solution. But, no effect. I updated the R using this solution. Now, devtools package is working.
Fedora 34
What did it for me was:
sudo dnf groupinstall "Development tools"
Not sure about that, but also:
sudo dnf install freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel
Don't know, don't care, but it worked!

Issues with installing readxl package

I am trying to install the new readxl package on a Windows 64 bit machine. I tried the following commands for the installation
install.packages("devtools")
library(devtools)
install.packages("Rcpp")
library(Rcpp)
install_github("hadley/readxl")
I get the following error with the install_github command:
Installing github repo readxl/master from hadley
Downloading master.zip from https://github.com/hadley/readxl/archive/master.zip
Installing package from C:\Users\RAVISH~1.R\AppData\Local\Temp\RtmpUTzCUH/master.zip
Installing readxl
"C:/PROGRA~1/R/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL \
"C:\Users\ravishankar.r\AppData\Local\Temp\RtmpUTzCUH\devtools585870ed251a\readxl-master" \
--library="C:/Users/ravishankar.r/Documents/R-dev" --install-tests
* installing *source* package 'readxl' ...
** libs
*** arch - i386
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-31~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="readxl.dll" OBJECTS="RcppExports.o XlsWorkBook.o XlsWorkSheet.o XlsxWorkBook.o XlsxWorkSheet.o benchmarks.o endian.o ole.o xls.o xlstool.o zip.o"' had status 127
ERROR: compilation failed for package 'readxl'
* removing 'C:/Users/ravishankar.r/Documents/R-dev/readxl'
Error: Command failed (1)
Could someone help with me this error?
Installing the correct version of Rtools fixed the issue. For R 3.1.2, I had to install Rtools 3.1.

Error installing BigVis package in RStudio Version 3.0.2

When I run the code to install BigVis package from GitHub as follows,
devtools::install_github("bigvis")
I get the following output:
Installing github repo bigvis/master from hadley
Downloading master.zip from https://github.com/hadley/bigvis/archive/master.zip
Installing package from /var/folders/dl/hhhtf5f52hz7qrw93wfyk_6h0000gn/T//RtmpgkDD2j/master.zip
arguments 'minimized' and 'invisible' are for Windows only
Installing bigvis
'/Library/Frameworks/R.framework/Resources/bin/R' \
--vanilla CMD INSTALL \
'/private/var/folders/dl/hhhtf5f52hz7qrw93wfyk_6h0000gn/T/RtmpgkDD2j/devtools259f1fe8bc61/bigvis-master' \
--library='/Library/Frameworks/R.framework/Versions/3.0/Resources/library' \
--install-tests
* installing *source* package 'bigvis' ...
** libs
sh: make: command not found
ERROR: compilation failed for package 'bigvis'
* removing '/Library/Frameworks/R.framework/Versions/3.0/Resources/library/bigvis'
Error: Command failed (1)
DO YOU HAVE ANY IDEA HOW I MAY FIX IT? THANKS
The error message sh: make: command not found tells you that the program sh could not find the program make. So my crystal ball tells me you might need to install GNU make. But I know nothing about RStudio nor BigVis.

Resources