Tidyverse appears in my packages but when I apple library(tidyverse) it won't upload. It says there is no package called 'stringi'
Output:
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’:
.onAttach failed in attachNamespace() for 'tidyverse', details:
call: NULL
error: package or namespace load failed for ‘stringr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’
In this case, since one of the dependencies is missing, yes, you have to unselect tidyverse or restart your session, install stringi, then try to load tidyverse again.
You don't have to backup your session, I suppose it depends on what else is in your environment and whether you want to save it.
Similar to the above answer, it can take a long time to back up an R session if you have a lot of data loaded or lots of objects.
That said, it's considered good practice to NOT save your environment every time, as it can lead to subtle errors where you forgot what you did to generate those objects. Rather, it's better to get into the habit of having all of your commands in a script when feasible, then re-running the script in each session, so that you know what was created can only have come from your written code.
Hi,
Can someone please help me
I installed the dplyr package with this function,
install.packages("dplyr")
and i lo0aded it from the library
I wanted to work on the toothgrowth data
I could not get the filter funtion to work
Using the code bellow
filtered_tg<- Filter(ToothGrowth, dose== 0.5)
this is the error message
Error in get(as.character(FUN), mode = "function", envir = envir) :
object 'ToothGrowth' of mode 'function' was not found
Every time I run library(tidyverse), I get an error saying that the package or namespace load failed because there's no package called 'stringi'. The issue is with 'stringr' depending on 'stringi', which is missing. Has anyone else encountered this problem?
That means you need to install the stringi package. If you don't want to install missing dependencies one by one, you can give the pak package a try, it is a different way of installing packages. pak will automatically install all dependencies. See the post above.