Installing Rcpp package in R 2.15.0 - r

I have a problem installing "Rcpp" package in R. The install command have worked for all packages but not for this one. The R error is :
package ‘Rcpp’ is not available (for R version 2.15.0)
I am using windows Vista.Please help.

As can be seen on the CRAN status page for Rcpp, it now depends on R (>= 2.15.1).
So you either update R from 2.15.0 to 2.15.1 (which is not a bad idea), or you can try to install an older Rcpp version such as 0.9.10 which will work with R 2.15.0.

Related

Error while downloading "highcharter" package in r

I am trying to download "highcharter" but got the error below. I also tried installing "rjson" but I got "package ‘rjson’ is not available (for R version 3.6.3)" message
ERROR: dependency 'rjson' is not available for package 'highcharter'
* removing 'C:/Users/elif.gencaslan/Documents/R/win-library/3.6/highcharter'
Warning in install.packages :
installation of package ‘highcharter’ had non-zero exit status
The problem: Outdated R version
The latest version of rjson (0.2.21) depends on R version >= 4.0.0 (see CRAN), and it seems like you have R version 3.6.3.
Best solution: Update R
Your best option is to update your version of R before installing rjson or highcharter.
Alternatives: Install old version of rjson
An alternative is to install an older version of rjson (0.2.20 should work with your version of R).
You can either do this with packages like renv:
renv::install("rjson#0.2.20")
Or remotes:
remotes::install_version("rjson", "0.2.20")
Or you could download it and install it manually from this mran snapshot.

dependency ‘slam’ is not available when installing TM package

I was able to use the library(tm) in r without problem until today, when loading tm shows:
library(tm)
Loading required package: NLP
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘slam’
Error: package or namespace load failed for ‘tm’
I thought this is a dependency issue and seek to reinstall package
install.packages("tm")
Warning in install.packages : dependency ‘slam’ is not available
and then try to find slam:
install.packages("slam")
Warning in install.packages :
package ‘slam’ is not available (for R version 3.2.4)
I also tried some of the issues listed here and chooseCRANmirror(), still no luck. Is there something wrong with the package or is it just that my r does not allow 'slam' to install after today?
session info
> sessionInfo()
R version 3.2.4 (2016-03-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] NLP_0.1-9
loaded via a namespace (and not attached):
[1] parallel_3.2.4 tools_3.2.4
For R-version 3.2.3, following worked fine as mentioned in this link and it suggests this works for R-version 3.3.0 as well:
#install devtools if you have not installed
install.packages('devtools')
library(devtools)
slam_url <- "https://cran.r-project.org/src/contrib/Archive/slam/slam_0.1-37.tar.gz"
install_url(slam_url)
I found a hint at this german site about R under Install additional R packages ("Zusätzliche R-Pakete installieren")
After I installed slam seperatly over apt-get for example:
sudo apt-get install r-cran-slam
I could install tm the normal way:
install.packages('tm')
And load the library aswell.
I hope my answer helps someone.
I had the same problem as you.
Slam "Depends: R (≥ 3.3.1)", this why I had to perform the following actions to successfully install and load "tm" package:
Update R from 3.2.5 to the latest version 3.3.2
install.packages("tm")
also installing the dependencies ‘NLP’, ‘slam’
package ‘NLP’ successfully unpacked and MD5 sums checked
package ‘slam’ successfully unpacked and MD5 sums checked
package ‘tm’ successfully unpacked and MD5 sums checked
library(tm)
I used the following code to install the binary or the older version of slam. It worked for me.
install.packages("slam", type = "binary")
I had the same problem and:
I upgraded RStudio to the latest version (1.0.143)
I upgraded R to the latest version (R.3.3.3)
I rebooted Rstudio
I installed again in RStudio the package "tm"
I ran library(tm)
and everything works fine now.
The latest version of the package "slam" only works for R(>=3.4.0),so you can try either updating your R to the latest version or downloading an early version of the "slam" package.
This is a download link from CRAN for early version of "slam" package: https://cloud.r-project.org/bin/macosx/mavericks/contrib/3.3/slam_0.1-40.tgz.
Apparently the problem seems to be the version of R you are using. Try installing the latest version of R, 3.3.1. That should take care of it.
I am using R3.2.5. I was trying to install "tm". I did install NLP as a dependency but gave me an error :
"package ‘slam’ is not available (for R version 3.2.5)"
The option I had to was to download the zip/tar/gz file(binaries) from https://cran.r-project.org/web/packages/slam/index.html and install the package.
It worked for me after that. Although I am not sure what the problem is because the library information mentions it is for R (≥ 3.3.1)
I also had to upgrade to the most recent version of R.
Specifically, on Ubuntu 16.04 here are instructions to get the up to date R version.
I faced this error while installing the "tm" package on R version 3.3.0. Seems like some missing libraries. After I could install the latest version 3.4.1 , i was able to install the package "tm" which installed the 'slam' on its own. Hope this may help somebody.
Just Install NLP package with dependencies = True
Install tm packaged with dependencies = True
And things should work out:)
For Ubuntu, I installed the following two from console and then it got installed.
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install gfortran
For any such type of issue regarding package not installed, update your R and later reinstall the package. These are the steps you follow:
if(!require(installr)){ install.packages("installr")}
require(installr)} #load the package
updateR()

How to check which version of R a package supports

I have tried to install the R package swiRcharts and received the following message:
package ‘swiRcharts’ is not available (for R version 3.3.1)
Where in the package files (available on GitHub) on from R console can I check which version of R the package was made for?

Cannot Install RSConnect Package in RStudio on Mac

I am unable to install the RSConnect package in RStudio with R 3.1.2 on OS X El Capitan via:
install.packages('rsconnect')
It's telling me that:
package ‘rsconnect’ is available as a source package but not as a binary
package ‘rsconnect’ is not available (for R version 3.1.2)
Is there another way to install this package? The Shiny documentation is a little vague on this subject.
Try install.packages("rsconnect", type = "source")

How to install Rmpfr in R 3.1.1

I am using R 3.1.1 with Ubuntu 13.10. When I am trying to install Rmpfr package, I am getting error
package ‘Rmpfr’ is not available (for R version 3.1.1)
Can someone tell me how to install it?

Resources