> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
I tried to configure R Studio
library(tidyverse) is for loading the package after installation. For you to install the package run install.packages("tidyverse")
Related
i am using this function:
test = as.data.frame (left_join (registerPers, pers, by = c ("RB030", "PB030")))
but rstudio gives me this error:
Error in left_join (registerPers, pers, by = c ("RB030", "PB030")):
I can't find the "left_join" function
despite having downloaded the dplyr package.
I actually find the problem by recalling the package:
library (dplyr)
Error: package or namespace load failed for 'dplyr' in loadNamespace (i, c (lib.loc, .libPaths ()), versionCheck = vI [[i]]):
there is no package called 'lifecycle'
how can i fix it?
I had this error and the above solution did not work for me. I also had the message. If you try
install.packages("lifecycle")
and get an error that looks like this:
WARNING: Rtools is required to build R packages but is not currently installed.
Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/student/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘rlang’
You will need to go to: https://cran.rstudio.com/bin/windows/Rtools/ and download the relevant version of RTools, once you have RTools installed rerun the
install.packages("lifecycle")
command and you should be able to now install it.
Every time I try to load a package using library(dplyr) it gives me this error
message error: there is no package called ‘crayon’
I'm not sure what to do I have installed the packages.
You might also try installing another package that includes dplyr (like tidyverse) https://www.tidyverse.org/packages/
install.packages("tidyverse")
library(tidyverse)
When starting RStudio the following message appears: Loading required package: sp. I try to install the sp package and the message appears:
Warning in install.packages :
package ‘sp’ is in use and will not be installed
That way, I can not install it. Also, because of this error, I'm having trouble calling the dplyr package. How do I fix this error?
Try this-
detach("package:sp", unload = TRUE)
install.packages("sp", dependencies=TRUE)
I am trying to install kableExtra and get the following errors:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck =
vI[[j]]) :
there is no package called 'hms'
ERROR: lazy loading failed for package 'kableExtra'
*removing 'C:/Users/Tim/Documents/R/win-library/3.2/kableExtra'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.5/bin/x64/R" CMD INSTALL -l "C:\Users\Tim\Documents\R\win-library\3.2"
C:\Users\Tim\AppData\Local\Temp\RtmpUJQfwD/downloaded_packages/kableExtra_0.9.0.
tar.gz' had status 1
Warning in install.packages :
installation of package ‘kableExtra’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Tim\AppData\Local\Temp\RtmpUJQfwD\downloaded_packages’
How can I solve my problem? Thanks in advance!
it seems kableExtra depends on the package "hms" so try install it before with:
install.packages("hms")
or via rstudio interface:
packages -> install
and type in "hms"
also try this command:
install.packages("kableExtra", dependencies = TRUE)
If there appear problems like installing rlang or something similar, there is no general solution for this. You can try to (re)install rtools. Sometimes there are missing parts of r installations. My guess if R can't install a dependencie is, that some library or tools of the R environment are missing or wrongly installed which have to be detected.
You have a trouble with the dependency with the package "hms". I have not got how you are installing the r package, but you can either install it first and then try it again or start the installation with the option of download and install all required dependencies, in the second option you need to be online and allow the package manager to intall what is required.
Here is how it looks in RGui. I guess your are not using RGui.
I am trying to install this package http://bioconductor.org/packages/release/data/annotation/html/org.Hs.eg.db.html. When I try to load org.Hs.eg.db using library (org.Hs.eg.db) , gives me this
error: Error in library(org.Hs.eg.db) :
there is no package called ‘org.Hs.eg.db’
It says the packages are downloaded here:
The downloaded source packages are in
‘/tmp/Rtmpgy1ZJE/downloaded_packages’
What could be the reason for this?
If you run into this error nowadays you have to install the package using
BiocManager::install("org.Hs.eg.db")