I'm using R-3.3.3. I tried to install package tm using following commands
install.packages('tm',dependencies = TRUE)
library('tm')
But I'm getting error message
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘slam’
In addition: Warning message:
package ‘tm’ was built under R version 3.3.3
Error: package or namespace load failed for ‘tm’
I saw two solutions for same type of error here & dependency ‘slam’ is not available when installing TM package. I tried those two but I'm getting error message like
Installation failed: Could not find build tools necessary to build slam.
Kindly suggest me how to install tm package in R-3.3.3
I faced the same problem today, after testing many ways to solve it I could find the following command that can install the tm package, sorry I know it is very late but still useful.
require(devtools)
install_version("tm", version = "0.7-1", repos = "http://cran.us.r-project.org")
Related
I'm unable to load the car package in R. I tried reinstalling using
install.packages("car",dependencies=TRUE)
both from R and RStudio. I tried installing quantreg as advised in another post and then installing it again. Installation appears to be successful, but simply can't load the program.
Here's the complete error:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘pbkrtest’
In addition: Warning message: package ‘car’ was built under R version 3.2.3
Error: package or namespace load failed for ‘car’
This was just bumped to the homepage by Community. I can't take credit for the answer, but to give it a real non-comment answer:
You should upgrade R first. Then run update.packages(checkBuilt = TRUE). Finally, try again install.packages("car", dependencies=TRUE). If it doesn't work, try to install package pbkrtest first. - user3710546
Given that the current version of R at the time the question was posted was 3.2.3, I think that was a good answer.
I got the same error. (I am using R 3.2.2) Please perform the following steps in sequence (after that try to activate installed caret package):
install.packages("lme4", repos="http://cran.rstudio.com/",type = "binary", dependencies=TRUE)
install.packages("nlme", repos="http://cran.rstudio.com/",type = "binary", dependencies=TRUE)
packageurl <- "https://cran.r-project.org/src/contrib/Archive/pbkrtest/pbkrtest_0.4-4.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
No need to upgrade R. I am still using R 3.2.2. I performed these steps and it worked for me.
When I attempt to open up the Tidyverse library after installing the package, the following error messages comes:
>library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.6.3
I also tried to install the package color space using
install.packages("colorspace")
Exact same error messages shows as above. Please help!
p.sp. I installed Rtools40.
You can try install.packages("scales").
You can also check for the newest version using the update button in Rstudio.
I've had the following error for the package Hmisc. I read another thread which asked more about the error message however it said not to post this as a comment. I've installed the package and received the following error when calling in the library:
> library(Hmisc)
Error: package or namespace load failed for ‘Hmisc’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘checkmate’
In addition: Warning message:
package ‘Hmisc’ was built under R version 3.4.4
I've tried deleting the install and then installing checkmate separately and manually installing this from a browser rather than through R directly. However the same error message is returning. Does anyone know how to overcome this? Or similar packages to Hmisc. I need to package for a wtd.quantile function.
install.packages('lattice')
library('lattice')
install.packages('survival')
library('survival')
install.packages('Formula')
library('Formula')
install.packages('ggplot2')
library('ggplot2')
install.packages('checkmate')
library('checkmate')
install.packages('htmlwidgets')
library('htmlwidgets')
install.packages('stringi')
library('stringi')
install.packages('Hmisc')
library('Hmisc')
I tried installing rtweet() in R but it shows the following error:
Error: package or namespace load failed for ‘rtweet’ in
loadNamespace(j <- imp[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘Rcpp’
As Russ said, you should try to install Rcpp before:
install.packages("Rcpp")
Or you could use the line:
install.packages("rtweet", dependencies = TRUE)
It will install rtweet and all dependencies like Rcpp
You could also, try to install it directly from URL:
install.packages("https://cran.r-project.org/web/packages/rtweet/index.html")
And if still fails, go directly to issues from rtweet (https://github.com/mkearney/rtweet/issues) ;-)
And also be careful, because R packages are case-sensitive!
Have a nice day!
I have uninstalled R and Rstudio. When I originally downloaded Rstudio the package was not listed in the packages section, so I downloaded and imported the zip file. There is no current version of R that is 3.3.0 that I can find-- my R version is 3.2.2. I have tried to install using the RGui as admin and I get the same error.
This is my error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =
vI[[i]]) : there is no package called ‘gtable’ In addition: Warning
message: package ‘ggplot2’ was built under R version 3.3.0 Error:
package or namespace load failed for ‘ggplot2’
You are somehow executing R 3.3.0. No matter, though, you can simply invoke install.packages('ggplot2', repos='http://cran.rstudio.com', type='source') should sort you. If not, post a comment.