I am trying to run sentiment analysis in R. I have installed tidytext and it is in the correct library with all other packages.
However, when I run
get_sentiments("afinn")
I get the following error:
Error in loadNamespace(name) : there is no package called ‘textdata’
Any suggestions on how to fix?
This means that the package is missing from your libraries. You need to install it with install.packages("textdata").
Related
for my Statistical analyses, I need to use the Packages ggplot2 and lmerTest.
While installing lmerTest I updated R and was able to use the function. But after this update, I was not able to use ggplot2 anymore. So I downgraded it.
If I want to install lmerTest now it shows the Error:
install.packages("lmerTest")
Warning in install.packages :
installation of package ‘lmerTest’ had non-zero exit status
---- there is no package called ‘lmerTest’
When I Google that problem I just find the answer to update R, but then ggplot2 won't work. I cant use lme4 instead because here is missing the p-value.
Is there no way to use both, ggplot2 and lmerTest, with Ubuntu??
I'm definitely no expert. Thanks for any help, sincerely
Maria
I am a beginner in R
trying to analyze my scRNA-seq data with velocyto.R in R studio.
Following velocyto tutorial, I tried installing velocyto.R as below:
library(devtools)
install_github("velocyto-team/velocyto.R")
But, an error pops up:
ERROR: compilation failed for package 'velocyto.R'
removing 'C:/Users/USER/Documents/R/win-library/3.6/velocyto.R'
Error: Failed to install 'velocyto.R' from GitHub:
(converted from warning) installation of package ‘C:/Users/USER/AppData/Local/Temp/RtmpukpRFl/file37346a812b86/velocyto.R_0.6.tar.gz’ had non-zero exit status
Is there anyone to face the same problem described above and succeed in resolving it after all?
I desperately need helps!
Thanks
As your error log says C:/..., you probably use Windows. According to velocyto's README it seems that this package runs only on unix-flavored systems with C++11, Open MP, boost, igraph and hdf5c++ libraries.
This can be the problem: read the velocyto's GitHub issue #40, maybe you'll need to run this under WSL...?
Can somebody point me in the right direction here, I am using the caret package and I am trying to run a caretTheme but it keeps returning the error:
Error in caretTheme() : could not find function "caretTheme"
I tried install.packages('caretTheme') and receive the error
"Warning in install.packages :
package ‘caretTheme’ is not available (for R version 3.4.1 Patched)"
I have searched on github and cannot find the package listed there or am I able to find it onlinee to bruteforce install using devtools::
Can you find the package available for download anywhere?
Try installing developmental version:
devtools::install_github("topepo/caret/pkg/caret")
library(caret)
exists("caretTheme")
[1] TRUE
sessionInfo()$otherPkgs$caret$Version
"6.0-77"
I am going to install fpc package in R. The command I tried to intall it is:
install.packages("fpc", dependencies = TRUE)
and I got this message:
The downloaded packages are in /tmp/RTmpuM8LCb/download_packages
But when I try to use it by library("fpc") I got this error:
Erro in library("fpc"): there is no package called 'fpc'
It seems it is not installed correctly but I do not understand where is the problem? Any one have any idea to help me?
I am not able to work in swirl package in R. I am able to install the swirl
package correctly. But while giving the library("swirl") command the error comes up.I have tried every thing like I am not able to find the answer of this error on internet. I have reinstalled R complete. I have tried changing directory. But still this error message is coming. Please help.This is the error message:
library("swirl")
Error in get(Info[i, 1], envir = env) :
cannot open file
'C:/Users/Devender/Documents/R/win-library/3.2/httr/R/httr.rdb': No such
file or directory
Error: package or namespace load failed for ‘swirl’
Thanks alot in advance
Try installing httr package. I think it will solve your problem.
You did not say which R version you are using.
Some Swirl packages are not available for few R versions as 3.2.2. You cant even download any courses from Github repositories into the Swirl if Swirl was successfully loaded in R.
You may want to re-install a different version of R to avoid this Swirl issue, and try again.