Error when trying to load car package in R studio cloud - r

I'm quite new to R so I don't understand what this error message is telling me. When I try to load the car package I get this message :
Error: package or namespace load failed for ‘car’ in loadNamespace(j <- i[[1L]], c(lib.loc,.libPaths()), versionCheck = vI[[j]]):there is no package called ‘openxlsx’
I'm working on the R studio cloud on a Chromebook. I believe the version is 3.6.0.
I've also tried this code but with no avail :
install.packages("car",dependencies=TRUE)

Related

RStudio Workbench No package called 'car' when loading ggpubr

I cannot manage to get the car package to download on RStudio Workbench version R 4.1.1. I am attempting to use the stat_cor function and get the error that it could not find function stat_cor, and from looking things up online, I need to download the ggpubr package and when I download it, I get the error:
Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘car’
So my next step is to download car but I get another error from there essentially saying "Configuration failed for package 'nloptr'" and also "dependency 'nloptr' is not available for package 'lme4'" and lastly "dependency 'lme4' is not available for package 'car'". I tried installing nloptr and get the same error.
I am new with this, but if I want to use the stat_cor function I need ggpubr, and for ggpubr I need car to work right? Any help would be great.
install.packages("ggpubr")
install.packages("car")
library('ggplot2')
library('ggpubr')
library('car')

Is there a solution for R giving an error message "error in loadnamespace" when installing a package?

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.

Which version of R is compatible with the newest version of Blavaan (August 3rd, 2019)?

I would like to use blavaan (version 0.3-5) for my analysis. Installing the package blavaan seems to work (i.e., no error messages), but when I try to load the library 'blavaan', I receive the following error message:
Error: package or namespace load failed for ‘blavaan’ in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘pkgbuild’
This is the error message I receive in the newest version of R (3.6.1). I checked, and it appears af if the package pkgbuild may not compatible with this version. Therefore, I tried an older version of R (3.5.3) in which blavaan was created. So then it should work, right?
But then again I receive a similar error message. This time for a package called vctrs.
For some background: I have experience with lavaan ('regular' SEM), and wanted to give blavaan a try. I know my way around lavaan and basic R, but I am not a programmer/mathematician or something like that. I think the best solution for me is to just use a version of R that others know will work, rather than having to program my way around.
This is the code I used, but I don't think that is the issue:
install.packages("blavaan", dep = TRUE)
library(blavaan)
After installing 'blavaan', I get the following message:
package ‘blavaan’ successfully unpacked and MD5 sums checked The
downloaded binary packages are in [location]
However, after opening the library 'blavaan', I receive the following error:
Error: package or namespace load failed for ‘blavaan’ in
loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]): there is no package called ‘pkgbuild’ [or 'vctrs' etc.]
I have only just started using blavaan (or: trying to...), so I only have tried the newest version of blavaan (0.3-5) that was updated on August 3rd, 2019.
Has anybody since then used blavaan? And if so, which version of R did you use?

How to install package tm in R-3.3.0

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")

Error Installing Forecast package in R Studio

I am trying to install the forecast package in R Studio ( Version 1.0153) and when i try to call the package using library(forecast) i get this error
"Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘tibble’"
While installing the forecasting package i used the command install.packages("forecast",dep=T). This is the first time i am encountering a problem when trying to install a package.
I did so using this command in the console and the package was successfully installed.
install.packages('forecast')
When using
install.packages("forecast",dep=T)
I also received the same error as you. So will the other line do the trick?
Note I am using R 3.4 as well in the console.

Resources