ropensci/magick

Problem with installing magick

JulianVeit opened this issue · 2 comments

Hey! I have a problem installing magick.

install.packages("magick")

results in:

> install.packages("magick")
Installiere Paket nach ‘C:/Users/julia/AppData/Local/R/win-library/4.2’
(da ‘lib’ nicht spezifiziert)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/magick_2.7.3.zip'
Content type 'application/zip' length 19426917 bytes (18.5 MB)
downloaded 5.3 MB

Warning in install.packages :
  downloaded length 5568448 != reported length 19426917
Warning in install.packages :
  URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/magick_2.7.3.zip': Timeout of 60 seconds was reached
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  download from 'https://cran.rstudio.com/bin/windows/contrib/4.2/magick_2.7.3.zip' failed
Warning in install.packages :
  Download von Paket ‘magick’ fehlgeschlagen

and

library(devtools)
install_github("ropensci/magick")

results in:

> library(devtools)
Lade nötiges Paket: usethis
> install_github("ropensci/magick")
Downloading GitHub repo ropensci/magick@HEAD
   Der Befehl ""C:\PROGRA~2\R-42~1.1/bin/x64/Rterm.exe"" ist entweder falsch geschrieben oder
   konnte nicht gefunden werden.
Error: Failed to install 'magick' from GitHub:
  ! System command 'Rcmd.exe' failed

My R version:

R version 4.2.1 (2022-06-23 ucrt) -- "Funny-Looking Kid"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

I am thankful for any advice!

PS: I also tried it on another device and had the same problem.

It looks like your downloads fail, either due to bad internet or maybe your antivirus is corrupting the downloads.

Thanks! Yes I just wanted to apologize because the download for another "bigger" package also failed..
Really seems that the Wifi is too bad.. hmm..

But thanks for your fast response!