I was able to install the swirl package, but when I give the library (swirl) command, the following error appears:
Error: package or namespace load failed for ‘swirl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘crayon’
So I try to install the crayon package and it appears:
* installing *source* package 'crayon' ...
** package 'crayon' successfully unpacked and MD5 sums checked
Warning in file(file, if (append) "a" else "w") :
cannot open file 'C:/Users/Tams/Documents/R/win-library/3.4/crayon/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") :
it's not possible to open the conection
ERROR: installing package DESCRIPTION failed for package 'crayon'
* removing 'C:/Users/TAÍS/Documents/R/win-library/3.4/crayon'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\TAÍS\Documents\R\win-library\3.4" C:\Users\TAS~1\AppData\Local\Temp\Rtmpc9eX85/downloaded_packages/crayon_1.3.4.tar.gz' had status 1
Warning in install.packages :
installation of package ‘crayon’ had non-zero exit status
How can I solve this problem and load the swirl package?
Try loading it directly from Github and see if it solves the problem. You may want to restart your instance of R prior to this to ensure that all is right in the world.
devtools::install_github("r-lib/crayon")
library(crayon)
Related
I just updated the R version from 4.0.4 to 4.1.3.
I have successfully installed
install.packages("agricolae").
But, when I run the syntax
library(agricolae),
The output in RGUI shown:
Warning message: package ‘agricolae’ was built under R version 4.0.5.
Then, the output in RStudio shown:
Error: package or namespace load failed for ‘agricolae’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘magrittr’.
So, I tried to install the packages of "magrittr", but failed. The output in RStudio shown:
The system cannot find the path specified. make: \*\*\* \[pipe.o\] Error 1 ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/Anna/Documents/R/win-library/4.1/magrittr' Warning in install.packages : installation of package ‘magrittr’ had non-zero exit status\.
How can I install the package of agricolae?
I am trying to do a scatter3d(y ~ x1+ x2), but I am getting the following error:
Loading required namespace: rgl
Failed with error: ‘there is no package called ‘shiny’’
Error in scatter3d(Vent ~ O2 + CO2) : rgl package missing
I have tried to install rgl in the following way:
install.packages("rgl", repos = c("http://rstudio.org/_packages", "http://cran.rstudio.com"))
install.packages("rgl", depositories = TRUE)
Getting this error:
Errore: package or namespace load failed for ‘rgl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘shiny’
And if I try to install shiny in the same way that I did for rgl, I get the following
ERROR: dependency 'htmltools' is not available for package 'shiny'
* removing 'C:/Users/franc/Documents/R/win-library/3.5/shiny'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘shiny’ had non-zero exit status
ERROR: dependency 'shiny' is not available for package 'shinytest'
* removing 'C:/Users/franc/Documents/R/win-library/3.5/shinytest'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘shinytest’ had non-zero exit status
Does anyone know what is going on and how I can solve this?
Thank you in advance!
I am trying to install tidyverse after updating R for mac. I am using Mac OS Catalina 10.15.2
When installing, I get the following error message:
* installing *source* package ‘jsonlite’ ...
** package ‘jsonlite’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘jsonlite’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/jsonlite’
Warning in install.packages :
installation of package ‘jsonlite’ had non-zero exit status
And when trying to load tidyverse. I get the following error message:
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘jsonlite’
I tried to install jsonlite as a seperate package, first uninstalling tidyverse, but got this error message:
package ‘json’ is not available (for R version 3.6.2)
Now at a bit of an impasse. Anyone know how to resolve this issue
I have this error when trying to run install.packages("rmarkdown"). Can someone please let me know what's wrong?
installing source package 'rmarkdown' ...
** package 'rmarkdown' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no
package called 'backports' ERROR: lazy loading failed for package
'rmarkdown'
removing 'C:/Program Files/R/R-3.2.3/library/rmarkdown'
restoring previous 'C:/Program Files/R/R-3.2.3/library/rmarkdown' Warning in install.packages : running command
'"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" CMD INSTALL -l "C:\Program
Files\R\R-3.2.3\library"
C:\Users\knguyen\AppData\Local\Temp\Rtmp0KyOP9/downloaded_packages/rmarkdown_1.6.tar.gz'
had status 1 Warning in install.packages : installation of package
‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\knguyen\AppData\Local\Temp\Rtmp0KyOP9\downloaded_packages’
Blockquote
Try install the package backports as mentioned in the error.
Try installing the new R Version https://cran.r-project.org/bin/windows/base/old/3.4.3/.
I tried installing R markdown in my R studio, but it keeps looping to ask me to install the package. The R version on my R studio was version 1.1, and after I installed the new R Version, installing the R Markdown package was a success. Hopefully this could help.
I started to get some error message in R when calling libraries that usually work very well. I decided to re-install the packages that were concerned, and also ran into some error..
Any idea what's going on? I'm about to throw my computer thru the window..
> library( "DESeq2" )
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘plyr’
Error: package or namespace load failed for ‘DESeq2’
> install.packages("plyr_1.8.2.tar.gz", repos = NULL, type="source")
Installing package into ‘C:/Users/Sun/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
* installing *source* package 'plyr' ...
** package 'plyr' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-32~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="plyr.dll" OBJECTS="RcppExports.o loop-apply.o split-numeric.o"' had status 127
ERROR: compilation failed for package 'plyr'
* removing 'C:/Users/Sun/Documents/R/win-library/3.2/plyr'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-32~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Sun\Documents\R\win-library\3.2" "plyr_1.8.2.tar.gz"' had status 1
2: In install.packages("plyr_1.8.2.tar.gz", repos = NULL, type = "source") :
installation of package ‘plyr_1.8.2.tar.gz’ had non-zero exit status
Thanks to Joran, installing from CRAN actually solved the issue.
install.packages("plyr")