Closed sepi1881 closed 2 months ago
you need to call library(ao)
before using the package
I choose ao package from Load Packages but there is an error ----> Error: package or namespace load failed for ‘ao’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘magick’
This error message tells you that you need to install the magick
package. Please restart your R session and try the following to install all required dependencies:
install.packages("ao", dependencies = TRUE)
library("ao")
you are right my problem is in magick package installation where I tried to install it there is an error : trying URL 'https://cran.um.ac.ir/bin/windows/contrib/4.4/magick_2.8.4.zip' Content type 'application/zip' length 24799841 bytes (23.7 MB) downloaded 18.1 MB
Error in download.file(url, destfile, method, mode = "wb", ...) : download from 'https://cran.um.ac.ir/bin/windows/contrib/4.4/magick_2.8.4.zip' failed In addition: Warning messages: 1: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 19007964 != reported length 24799841 2: In download.file(url, destfile, method, mode = "wb", ...) : URL 'https://cran.um.ac.ir/bin/windows/contrib/4.4/magick_2.8.4.zip': Timeout of 60 seconds was reached Warning in download.packages(pkgs, destdir = tmpd, available = available, : download of package ‘magick’ failed
Hm, the following works for me:
install.packages("magick", repos = "http://cran.us.r-project.org", dependencies = TRUE)
Does it also work for you?
thanks a lot it works
after I
install.packages("ao")
in R console I typebut there is this output: