Yesterday I tried to open a R Markdown in Rstudio. Rstudio forced me to download something, Now everytime I restart Rstudio or install package, it shows
Error in loadNamespace(name) : there is no package called ‘yaml’
Error in loadNamespace(name) : there is no package called ‘yaml’"
I saw someone say that I can resolve this by removing all packages I have installed, but I only found the remove.package function, which can only remove one package at a time.
If I want to delete all packages, what should I do?
(I use Mac)
Related
I am trying to install the tsDyn package on my Macbook Pro running MacOSX Catalina version 10.15.2. in RStudio (v.1.3.959), running R (v.4.0.1). I get the following error:
ERROR: compilation failed for package ‘mnormt’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/mnormt’
Warning in install.packages :
installation of package ‘mnormt’ had non-zero exit status
I tried installing 'mnormt' myself, as well as deleted all irrelevant packages manually to get rid of any possible older versions that may be interfering with the 'tsDyn' package, but nothing seems to be working.
The 'tsDyn' package seems to be installing otherwise, but I cannot call the function 'VECM' because it R states that it does not exist.
Any help would be much appreciated.
If you are using Anaconda, inside Environments search for "r-mnormt" and install from there. Also you can try inside RStudio:
install.packages("r-mnormt")
It should work now.
I am trying to install several packages to R. The packages were send to me via email from my biostatistician and I have them on my desktop in a file called R_scripts.
I have tried:
install.packages("/Users/isimee/Desktop/R_scripts/findalpha.R", repos=NULL, type="source")
Which returns following error message:
Error in untar2(tarfile, files, list, exdir, restore_times) :
incomplete block on file
Warning message:
In install.packages("/Users/isimee/Desktop/R_scripts/findalpha.R", :
installation of package '/Users/isimee/Desktop/R_scripts/findalpha.R' had non-zero exit status
findalpha.R is one of the packages I am trying to install.
I am using terminal on a mac but have tried from R directly and it doesnt work. I have downloaded the devtools but doesnt work either apart from that I dont really know what to do with it.
Help would be very much appreciated. Thanks a lot.
I am trying to create clustered box plots in R. Everything about my code seems on track, but when I try to run it I get the error warning
"Error in loadNamespace(name) : there is no package called ‘digest’.
When I try to download the package digest in the R package Installer I get a bunch of errors stating that the download of digest failed.
How do I get the digest package, OR is there a way to do clustered box plots without this? Thanks!
I had the same problem with install.packages("digest") on OS10.11.6 (running with the defaults). But it worked by specifying the repos:
install.packages('digest', repos='http://cran.us.r-project.org')
I had a similar error message recently and managed to solve the problem by downloading the tar.gz file directly from the CRAN Repository (see https://cran.r-project.org/web/packages/digest/index.html and download "digest_0.6.15.tar.gz") and then you can install it in RStudio (Tools -> Install Packages -> Install from Package/Archive File).
I just started using R and downloaded ggplot2
install.packages("ggplot2")
I get the following warning:
Warning in install.packages:
unable to move temporary installation '\\CHI-FIlE-01\UserFolders$\naresh.kavuri\Documents\R\win-library\3.2\file27ac2d3b613c\ggplot' to '\\CHI-FILE-01\UserFolders$\naresh.kavuri\Documents\R\win-library\3.2\ggplot2'
This warning is followed up with this error:
Error: invalid version specification 'NA'
In addition: warning message:
In utils:::packageDescription(packageName, fields = "Version") :
no package 'knitr' was found
As anyone come across this problem before? Did I do something wrong in the setup?
If you have multiple versions of R running, and you try to update or reinstall a package in one version of R while it is loaded in another, then the old version of the package doesn't get completely removed.
Try closing down all instances of R, manually deleting the folder containing the package, then opening a single version of R and reinstalling.
As Pascal commented, antivirus file scans can also interfere with the installation process. Sometimes downloading the package zip/tar.gz file then installing from disk can circumvent the issue.
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.