Error installing BigVis package in RStudio Version 3.0.2 - r

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.

Related

Unable to install magrittr

Got a new company laptop and tried to install tidyr or installr, but it always fails because of magrittr.
If I want to install this package directly I'm getting the following error code:
* installing *source* package 'magrittr' ...
** package 'magrittr' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-33~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB="magrittr.dll" OBJECTS="pipe.o utils.o"' had status 127
ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/xxxx/Documents/R/win-library/3.3/magrittr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\xxxx\Documents\R\win-library\3.3" C:\Users\xxxx\AppData\Local\Temp\1\RtmpMHlNI9/downloaded_packages/magrittr_2.0.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘magrittr’ had non-zero exit status
I don't have admin privileges on this computer and could imagine that this could be the source of the problem, but I'm not sure.
What I tried:
Changed folder for libraries
Reinstalled all libraries
Tried different cron repos
Tried to install it on this way: install.packages("magrittr", update.packages(checkBuilt = TRUE))
Always the same error.
Is there any other way to install it?
Installing an archived version from source will work.
install.packages("cran.r-project.org/src/contrib/Archive/magrittr/…", repos = NULL, type="source")
You can utilize conda to install it:
conda install -c r r-magrittr
Reference:
https://anaconda.org/r/r-magrittr

rgdal installation error: core dumped when finalizing install

I'm currently using linux subsystem on Windows.
Few days ago I've installed microsoft-r and RStudio and tried to install a rgdal package(ultimately I will install tmap and tmaptools packages). Of course, libgdal-dev and its dependencies are correctly configured in the way I've known.
Here's a error message when R finalizes the installation of rgdal: (truncated)
*** installing vignettes
** testing if installed package can be loaded
sh: line 1: 8835 aborted (core dumped) '/usr/lib64/microsoft-r/3.4/lib64/R/bin/R' --no-save --slave 2>&1 < '/tmp/RtmpDpn26L/file1f726636ef3e'
ERROR: loading failed
* removing '/home/felix/R/x86_64-pc-linux-gnu-library/3.4/rgdal'
Warning in install packages:
installation of package 'rgdal' had non-zero exit status
`
Does anyone have a similar experience like my case?
Thanks in advance.

cannot install R tseries, quadprog ,xts packages in Linux

I am using R version 3.4.0
I'm trying to install tseries package on linux machine:
install.packages('https://cran.cnr.berkeley.edu/src/contrib/tseries_0.10-42.tar.gz',dependencies = TRUE,repos = NULL,type ="source")
It gives error:
ERROR: compilation failed for package 'xts'
* removing '/usr/lib64/R/library/xts'
ERROR: dependency 'xts' is not available for package 'TTR'
* removing '/usr/lib64/R/library/TTR'
ERROR: dependencies 'xts', 'TTR' are not available for package 'quantmod'
* removing '/usr/lib64/R/library/quantmod'
ERROR: dependencies 'quadprog', 'quantmod' are not available for package 'tseries'
* removing '/usr/lib64/R/library/tseries'
1: In install.packages("tseries", dependencies = TRUE) :
installation of package 'quadprog' had non-zero exit status
2: In install.packages("tseries", dependencies = TRUE) :
installation of package 'xts' had non-zero exit status
3: In install.packages("tseries", dependencies = TRUE) :
installation of package 'TTR' had non-zero exit status
4: In install.packages("tseries", dependencies = TRUE) :
installation of package 'quantmod' had non-zero exit status
5: In install.packages("tseries", dependencies = TRUE) :
installation of package 'tseries' had non-zero exit status
Then I tried installing quadprog using:
install.packages('https://cran.cnr.berkeley.edu/src/contrib/quadprog_1.5-5.tar.gz',dependencies = TRUE,repos = NULL,type ="source")
It gives error :
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make: *** [quadprog.so] Error 1
ERROR: compilation failed for package 'quadprog'
* removing '/usr/lib64/R/library/quadprog'
Please help what should i do. I'm facing hard time in installing these packages.
I have installed R using :
sudo yum -y install R-core R-devel
I tried installing gfortran using : yum install gcc-gfortran
It says :Package gcc-gfortran-4.4.7-18.el6.x86_64 already installed and latest version
Nothing to do
The problem here is that the Fortran compiler (gfortran) and the GCC compiler driver (gcc) are out of sync: gfortran is version 4.4.7, gcc is version 4.7.2. This means that they use different directories to store there files, and gcc is unable to locate the libgfortran.so symbolic link installed by the gcc-gfortran package.
The solution is to bring these two compilers to the same version. This can be achieved by adjusting the PATH variable (based on other discussions, gcc is not referring to /usr/bin/gcc here), deinstalling the software collection that provides this gcc command (using yum remove devtoolset-1.1-gcc), or installing the Fortran component for the same software collection, using yum install devtoolset-1.1-gcc-gfortran.
My best guess is that your devtoolset-1.1-gcc package comes from this repository:
https://people.centos.org/tru/devtools-1.1/6/x86_64/RPMS/
So you could use the gfortran package from there, too (and pick the c++ package as well, to avoid a similar problem).
After spending quite some time with the same error, the only solution that worked for me was to re-install all R components.
For completness, what I did was to remove all R components with:
dpkg -l | grep ^ii | awk '$2 ~ /^r-/ { print $2 }' | sudo xargs apt-get remove --purge -y (got it from here)
and re-install R again: sudo apt-get install r-base r-base-dev
I fixed this by reinstalling R from source using:
make install rhome=/usr

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

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.

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.

Resources