Why some R packages can't be installed - r

I've been using R for a while and everything was normal when installing packages. Recently, I upgraded R on my Ubuntu 16.04 from 3.4.4 to 4.0.2 and then I tried to install the package imputeTS as
> install.packages("imputeTS")
Installing package into ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘png’, ‘gridtext’, ‘ggtext’
trying URL 'https://cloud.r-project.org/src/contrib/png_0.1-7.tar.gz'
Content type 'application/x-gzip' length 24990 bytes (24 KB)
==================================================
downloaded 24 KB
trying URL 'https://cloud.r-project.org/src/contrib/gridtext_0.1.1.tar.gz'
Content type 'application/x-gzip' length 441462 bytes (431 KB)
==================================================
downloaded 431 KB
trying URL 'https://cloud.r-project.org/src/contrib/ggtext_0.1.0.tar.gz'
Content type 'application/x-gzip' length 1849875 bytes (1.8 MB)
==================================================
downloaded 1.8 MB
trying URL 'https://cloud.r-project.org/src/contrib/imputeTS_3.1.tar.gz'
Content type 'application/x-gzip' length 3015320 bytes (2.9 MB)
==================================================
downloaded 2.9 MB
* installing *source* package ‘png’ ...
** package ‘png’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG `libpng-config --cflags` -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c read.c -o read.o
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG `libpng-config --cflags` -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c write.c -o write.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o png.so read.o write.o -L/home/.../anaconda/lib -lpng16 -lm -lz -lm -L/usr/lib/R/lib -lR
installing to /home/.../R/x86_64-pc-linux-gnu-library/4.0/00LOCK-png/00new/png/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘png’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/.../R/x86_64-pc-linux-gnu-library/4.0/00LOCK-png/00new/png/libs/png.so':
libpng16.so.16: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/png’
ERROR: dependency ‘png’ is not available for package ‘gridtext’
* removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/gridtext’
ERROR: dependency ‘gridtext’ is not available for package ‘ggtext’
* removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/ggtext’
ERROR: dependency ‘ggtext’ is not available for package ‘imputeTS’
* removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/imputeTS’
The downloaded source packages are in
‘/tmp/RtmpZubgYt/downloaded_packages’
Warning messages:
1: In install.packages("imputeTS") :
installation of package ‘png’ had non-zero exit status
2: In install.packages("imputeTS") :
installation of package ‘gridtext’ had non-zero exit status
3: In install.packages("imputeTS") :
installation of package ‘ggtext’ had non-zero exit status
4: In install.packages("imputeTS") :
installation of package ‘imputeTS’ had non-zero exit status
Then
> library(imputeTS)
Error in library(imputeTS) : there is no package called ‘imputeTS’
I tried to install the same package as install.packages("imputeTS", dependencies = TRUE) but this gave me the same result installation of package ‘imputeTS’ had non-zero exit status
Following, I tried to install the packages Hmisc and mice. The same result was for the first package where as mice was installed successfully!
Two more comments, the first is this statement (as ‘lib’ is unspecified) started to appear just after upgrading R. The second, I am not sure if related, is that there is no space on my linux!
So how could I install the needed packages successfuly?

Just a wrap up that people can find the correct answer given in the comments better and understand the error messages
This is no problem related specifically to the imputeTS package.
This can be seen in this part of the error message
Error: package or namespace load failed for ‘png’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/.../R/x86_64-pc-linux-gnu-library/4.0/00LOCK-png/00new/png/libs/png.so':
libpng16.so.16: cannot open shared object file: No such file or directory
The error actually occurs while trying to install the png package.
How is this related to the imputeTS package?
You can see this here:
ERROR: loading failed
removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/png’
ERROR: dependency ‘png’ is not available for package ‘gridtext’
removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/gridtext’
ERROR: dependency ‘gridtext’ is not available for package ‘ggtext’
removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/ggtext’
ERROR: dependency ‘ggtext’ is not available for package ‘imputeTS’
removing ‘/home/.../R/x86_64-pc-linux-gnu-library/4.0/imputeTS’
R packages build on each other and import functions of other packages. In this case imputeTS imports ggtext, which imports gridtext, which imports png.
So quite a sequence of dependencies and if installation of png fails, this affects all the other packages.
Luckily this part of the error message also gives a hint, what could be wrong:
unable to load shared object '/home/.../R/x86_64-pc-linux-gnu-library/4.0/00LOCK-png/00new/png/libs/png.so':
libpng16.so.16: cannot open shared object file: No such file or directory
There is a library missing on which the png package itself depends on. Without this library the installation of png will fail and cause all these mentioned issues.
So just install the library like this:
sudo apt-get install libpng16-16

Related

R can't find icc to compile packages

I've compiled R-mkl package in Arch Linux using the Intel OneAPI compilers. But I cannot install packages from inside R, since it cannot find icc. The path in order to bash find the executables is defined in /etc/bash.bashrc:
export PATH="$PATH:/opt/intel/oneapi/compiler/latest/linux/bin/intel64/"
When I try to compile a package, it says it cannot find icc:
> install.packages("lazyeval")
Installing package into ‘/home/juliano/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
tentando a URL 'https://cran.rstudio.com/src/contrib/lazyeval_0.2.2.tar.gz'
Content type 'application/x-gzip' length 83482 bytes (81 KB)
==================================================
downloaded 81 KB
* installing *source* package ‘lazyeval’ ...
** package ‘lazyeval’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
icc -std=gnu11 -I"/usr/include/R/" -DNDEBUG -I/usr/local/include -fpic -O3 -fPIC -m64 -march=native -fp-model precise -fp-model source -I/opt/intel/mkl/include -c expr.c -o expr.o
/bin/sh: linha 1: icc: command not found
make: *** [/usr/lib64/R/etc/Makeconf:169: expr.o] Erro 127
ERROR: compilation failed for package ‘lazyeval’
* removing ‘/home/juliano/R/x86_64-pc-linux-gnu-library/4.2/lazyeval’
Warning in install.packages :
installation of package ‘lazyeval’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpPvcR2C/downloaded_packages’
How I do instruct R to read /etc/bash.bashrc or define the path to the compilers manually?
I have also tried to define the path in a file in /etc/profile.d, without success.
You can try sourcing setvars.sh script to initiate the OneAPI environment.
source /opt/intel/oneapi/setvars.sh
As you said, it will work if you create a symlink to the /bin.
Refer to the below link to get more details on usage of R with Intel OneAPI
https://www.intel.com/content/www/us/en/developer/articles/technical/using-onemkl-with-r.html

monocle3 installation issues

I have R 4.2.1 and the latest R studio build 554 on a macOS Monterey.
I am trying to install monocle3 using the following :
BiocManager::install('monocle3')
I get a really long error message
BiocManager::install("monocle3")
'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details
replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.15 (BiocManager 1.30.19), R 4.2.1 (2022-06-23)
Installing package(s) 'monocle3'
Old packages: 'processx', 'ps', 'tm', 'zip'
Update all/some/none? [a/s/n]:
a
There are binary versions available but the source versions are later:
binary source needs_compilation
processx 3.7.0 3.8.0 TRUE
ps 1.7.1 1.7.2 TRUE
tm 0.7-8 0.7-9 TRUE
zip 2.2.1 2.2.2 TRUE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel) yes
installing the source packages ‘processx’, ‘ps’, ‘tm’, ‘zip’
trying URL 'https://cran.rstudio.com/src/contrib/processx_3.8.0.tar.gz'
Content type 'application/x-gzip' length 162539 bytes (158 KB)
==================================================
downloaded 158 KB
trying URL 'https://cran.rstudio.com/src/contrib/ps_1.7.2.tar.gz'
Content type 'application/x-gzip' length 129096 bytes (126 KB)
==================================================
downloaded 126 KB
trying URL 'https://cran.rstudio.com/src/contrib/tm_0.7-9.tar.gz'
Content type 'application/x-gzip' length 638649 bytes (623 KB)
==================================================
downloaded 623 KB
trying URL 'https://cran.rstudio.com/src/contrib/zip_2.2.2.tar.gz'
Content type 'application/x-gzip' length 103404 bytes (100 KB)
==================================================
downloaded 100 KB
* installing *source* package ‘ps’ ...
** package ‘ps’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -mmacosx-version-min=10.13 -Wall -g -O2 -L/usr/local/lib -Wall px.c -o px
px.c:6:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^~~~~~~~~~
1 error generated.
make: *** [Makevars:11: px] Error 1
ERROR: compilation failed for package ‘ps’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/ps’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/ps’
* installing *source* package ‘tm’ ...
** package ‘tm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/BH/include' -I'/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include' -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/RcppCommon.h:30:
In file included from /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/Rcpp/r/headers.h:62:
In file included from /Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:
In file included from /Users/osman/opt/miniconda3/bin/../include/c++/v1/cmath:305:
/Users/osman/opt/miniconda3/bin/../include/c++/v1/math.h:301:15: fatal error: 'math.h' file not found
#include_next <math.h>
^~~~~~~~
1 error generated.
make: *** [/Library/Frameworks/R.framework/Resources/etc/Makeconf:175: RcppExports.o] Error 1
ERROR: compilation failed for package ‘tm’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/tm’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/tm’
* installing *source* package ‘zip’ ...
** package ‘zip’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -mmacosx-version-min=10.13 -Wall -g -O2 miniz.c zip.c unixutils.c tools/cmdzip.c -o tools/cmdzip
In file included from miniz.c:27:
./miniz.h:156:10: fatal error: 'time.h' file not found
#include <time.h>
^~~~~~~~
1 error generated.
make: *** [Makevars:9: tools/cmdzip] Error 1
ERROR: compilation failed for package ‘zip’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/zip’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/zip’
* installing *source* package ‘processx’ ...
** package ‘processx’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
clang -mmacosx-version-min=10.13 -Wall -g -O2 -L/usr/local/lib -Wall tools/px.c -o tools/px
tools/px.c:11:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^~~~~~~~~~
1 error generated.
make: *** [Makevars:14: tools/px] Error 1
ERROR: compilation failed for package ‘processx’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/processx’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/processx’
The downloaded source packages are in
‘/private/var/folders/ps/3jjkc4kj1y98mzlpdm3wp5dm0000gn/T/RtmpNbTlti/downloaded_packages’
Warning messages:
1: package ‘monocle3’ is not available for Bioconductor version '3.15'
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
2: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘ps’ had non-zero exit status
3: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘tm’ had non-zero exit status
4: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘zip’ had non-zero exit status
5: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package ‘processx’ had non-zero exit status
so I tried installing 'processx', 'ps', 'tm', 'zip' individually and now I get the following message:
Warning message:
package ‘monocle3’ is not available for Bioconductor version '3.15'
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Any idea for how to fix this issue?
I expected the installation to go through but it did not
When I get errors installing a package what I usually do is going to the first package that didn't install properly and try and install it in a different way, and I do the same for the others.
Other mac users had similar issue installing the ps package as you can see in this github issues here https://github.com/r-lib/ps/issues/55
they solved the problem by installing ps package via anaconda:
https://anaconda.org/conda-forge/r-ps

Trouble installing package rms for Rstudio

I have been having an issue installing package rms. I am trying to interpret ordinal models (using the package ordinal) and plot regressions using them. For rms, I don't even get an error, just that it updates other loaded packages, loads and attaches package 'lubridate' which had already been installed, and that 'date' is masked from the base package.
For reference I had originally tried to install hmisc, which I found out was a dependency for rms. This led to an issue installing dependency gfortran. When I attempt to install gfortran, I get
package ‘gfortran’ is not available (for R version 3.5.1)
But then, when I try to install Hmisc, I get
installing the source package ‘Hmisc’
trying URL 'https://cran.rstudio.com/src/contrib/Hmisc_4.4-0.tar.gz'
Content type 'application/x-gzip' length 744545 bytes (727 KB)
==================================================
downloaded 727 KB
* installing *source* package ‘Hmisc’ ...
** package ‘Hmisc’ successfully unpacked and MD5 sums checked
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/include -fPIC -Wall -g -O2 -c Hmisc.c -o Hmisc.o
gfortran -fPIC -g -O2 -c cidxcn.f -o cidxcn.o
make: gfortran: No such file or directory
make: *** [cidxcn.o] Error 1
ERROR: compilation failed for package ‘Hmisc’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Hmisc’
Warning in install.packages :
installation of package ‘Hmisc’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/5l/r40ht3p511j0mbty0ptcc7zm0000gn/T/RtmpFAI0pw/downloaded_packages’
For reference, I run this on a Mac OS Catalina (10.15.4).
Alternatively, if you have any other ways to graph regressions using ordinal models please let me know! Thank you very much.
I got a similar error even though I had installed gfortran by running brew install gfortran. But I needed to add this to my ~/.Rprofile:
Sys.setenv(PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin")

R studio packages on mojave have 'non-zero exit status'

I haven't used R for a while. Now I need to work with it again and in the meantime I updated to mac os mojave. Also, bioconductor apparently switched sth in their installations and we now have to use biocmanager instead of bioclite. Anyways, I run into several installation errors and have no idea what to do. I just downloaded xcode hoping that this was the problem but I still get the following errors:
> library(DESeq2)
Fehler: package or namespace load failed for ‘DESeq2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
es gibt kein Paket namens ‘Hmisc’
> install.packages("Hmisc")
also installing the dependencies ‘acepack’, ‘data.table’
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6:
kann URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/PACKAGES' nicht öffnen
Packages which are only available in source form, and may need compilation
of C/C++/Fortran: ‘acepack’ ‘data.table’ ‘Hmisc’
Do you want to attempt to install these from sources? (Yes/no/cancel) yes
installing the source packages ‘acepack’, ‘data.table’, ‘Hmisc’
versuche URL 'https://cran.rstudio.com/src/contrib/acepack_1.4.1.tar.gz'
Content type 'application/x-gzip' length 34848 bytes (34 KB)
==================================================
downloaded 34 KB
versuche URL 'https://cran.rstudio.com/src/contrib/data.table_1.12.8.tar.gz'
Content type 'application/x-gzip' length 4948391 bytes (4.7 MB)
==================================================
downloaded 4.7 MB
versuche URL 'https://cran.rstudio.com/src/contrib/Hmisc_4.4-0.tar.gz'
Content type 'application/x-gzip' length 744545 bytes (727 KB)
==================================================
downloaded 727 KB
* installing *source* package ‘acepack’ ...
** Paket ‘acepack’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
** libs
gfortran -fPIC -Wall -g -O2 -c ace.f -o ace.o
make: gfortran: No such file or directory
make: *** [ace.o] Error 1
ERROR: compilation failed for package ‘acepack’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/acepack’
Warning in install.packages :
installation of package ‘acepack’ had non-zero exit status
* installing *source* package ‘data.table’ ...
** Paket ‘data.table’ erfolgreich entpackt und MD5 Summen überprüft
** using staged installation
zlib 1.2.8 is available ok
** libs
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp -fPIC -Wall -g -O2 -c assign.c -o assign.o
clang: error: unsupported option '-fopenmp'
make: *** [assign.o] Error 1
ERROR: compilation failed for package ‘data.table’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/data.table’
Warning in install.packages :
installation of package ‘data.table’ had non-zero exit status
ERROR: dependencies ‘acepack’, ‘data.table’ are not available for package ‘Hmisc’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Hmisc’
Warning in install.packages :
installation of package ‘Hmisc’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/7y/tklmw3f51rz8292j144_70680000gn/T/RtmpacLY8N/downloaded_packages’
Can anyone help? Thank you in advance!
I am running Mojave on my laptops, and I was able to use this guide to get things working.
Try following the steps on that guide.
However, I had to use a slightly different Makevars file because I'm not on the most up-to-date OS.
Here is the contents of my ~/.R/Makevars file.
CFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CCFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CXXFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CPPFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include
CXX14 = /usr/local/clang7/bin/clang++ -stdlib=libc++ -nostdinc++ -I/usr/local/clang7/include/c++/v1
SHLIB_CXX14LD = /usr/local/clang7/bin/clang++ -L/usr/local/clang7/lib
FLIBS=""
F77="/usr/local/gfortran/bin/gfortran"
FC="/usr/local/gfortran/bin/gfortran"
Try going to R preferences > Packages and unchecking "Use secure download method for HTTP", it looks like this is a default parameter that unables opening the URL.
Fixed!
I could fix the problem by typing the following into my terminal:
brew update && brew reinstall r

R install `KFKSDS` on mac

I am trying to install tsoutliers library in R where only the source is available and it doesn't has a CRAN package available. Also, KFKSDS in one of the dependencies that have to be installed, again, it is source code version available only.
I used brew to have gsl installed but when I tried to install KFKSDS, it still errorred out. On the other side, I installed gsl, gsl-devel, KFKSDS and tsoutliers easily on the redhat server. Can anyone show me how can I installed it successfully on my Mac. I am using R 3.1.1 which is not cutting edge but should be good enough, I guess.
> install.packages("KFKSDS", type="source")
trying URL 'http://cran.rstudio.com/src/contrib/KFKSDS_1.5.tar.gz'
Content type 'application/x-gzip' length 30272 bytes (29 Kb)
opened URL
==================================================
downloaded 29 Kb
* installing *source* package ‘KFKSDS’ ...
** package ‘KFKSDS’ successfully unpacked and MD5 sums checked
** libs
g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -mtune=core2 -g -O2 -c KF-deriv.cpp -o KF-deriv.o
In file included from /usr/include/c++/4.2.1/bits/locale_facets.h:1539,
from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/include/c++/4.2.1/numeric:67,
from KFKSDS.h:12,
from KF-deriv.cpp:1:
/usr/include/c++/4.2.1/bits/codecvt.h:219:45: error: macro "length" passed 4 arguments, but takes just 1
In file included from /usr/include/c++/4.2.1/bits/locale_facets.h:1539,
from /usr/include/c++/4.2.1/bits/basic_ios.h:44,
from /usr/include/c++/4.2.1/ios:50,
from /usr/include/c++/4.2.1/ostream:45,
from /usr/include/c++/4.2.1/iterator:70,
from /usr/include/c++/4.2.1/numeric:67,
from KFKSDS.h:12,
from KF-deriv.cpp:1:
/usr/include/c++/4.2.1/bits/codecvt.h:218: error: expected ‘;’ before ���const’
/usr/include/c++/4.2.1/bits/codecvt.h:222: error: expected `;' before ‘int’
make: *** [KF-deriv.o] Error 1
ERROR: compilation failed for package ‘KFKSDS’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/KFKSDS’
Warning in install.packages :
installation of package ‘KFKSDS’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/d2/ffftfj193ng339zrc3jbdv75m9ssv9/T/RtmpgJshhe/downloaded_packages’

Resources