Closed debuglevel closed 2 years ago
Hey @debuglevel, unfortunately, I'm not able to reproduce. With the instructions above, I get:
> jetpack::add("knitr@1.27")
Downloading package from url: https://cloud.r-project.org//src/contrib/Archive/knitr/knitr_1.27.tar.gz
Installing 10 packages: evaluate, highr, markdown, stringr, yaml, xfun, mime, glue, magrittr, stringi
Installing packages into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
# ... lots of output ...
* DONE (knitr)
Adding these packages to packrat:
_
evaluate 0.14
glue 1.3.1
highr 0.8
knitr 1.27
magrittr 1.5
markdown 1.1
mime 0.9
stringi 1.4.5
stringr 1.4.0
xfun 0.12
yaml 2.2.1
Installing evaluate (0.14) ...
OK (built source)
Installing glue (1.3.1) ...
OK (built source)
Installing highr (0.8) ...
OK (built source)
Installing magrittr (1.5) ...
OK (built source)
Installing mime (0.9) ...
OK (built source)
Installing stringi (1.4.5) ...
OK (built source)
Installing xfun (0.12) ...
OK (built source)
Installing yaml (2.2.1) ...
OK (built source)
Installing stringr (1.4.0) ...
OK (built source)
Installing markdown (1.1) ...
OK (built source)
Installing knitr (1.27) ...
OK (built source)
Using evaluate 0.14
Using glue 1.3.1
Using highr 0.8
Using knitr 1.27
Using magrittr 1.5
Using markdown 1.1
Using mime 0.9
Using packrat 0.5.0
Using stringi 1.4.5
Using stringr 1.4.0
Using xfun 0.12
Using yaml 2.2.1
Pack complete!
Maybe you're using a custom CRAN mirror that doesn't have it?
Hm.. that's weird.
curl https://cloud.r-project.org//src/contrib/Archive/knitr/knitr_1.27.tar.gz
works fine in the docker container. So the CRAN mirror should have it.
Any ideas how to debug this issue? Unfortunately I'm not a great R magician :-)
I tried it on a Docker container on https://labs.play-with-docker.com/ and again I got that the package could not be found.
The commands to use are basically this, right?
bash$ docker run -ti r-base
R> install.packages("jetpack")
R> jetpack::init()
R> jetpack::add("knitr@1.27")
Yeah, those are the commands. Try setting:
options(internet.info = 0)
I was able to reproduce on https://labs.play-with-docker.com/. However, I'm not sure what the issue is. The only difference in output appears to be the IP address where cloud.r-project.org
resolves. I thought the archive files might be different, but they have the same size and hash.
download.file("https://cloud.r-project.org//src/contrib/Meta/archive.rds", "archive.rds")
file.size("archive.rds")
# [1] 2504129
tools::md5sum("archive.rds")
# "96f81f58684bc81ec2e0d23e3d273a84"
Downloading the files works for both as well.
download.file("https://cloud.r-project.org//src/contrib/Archive/knitr/knitr_1.27.tar.gz", "knitr_1.27.tar.gz")
Cleaning up stale issues. If anyone else runs into this, feel free to create a new issue.
I feel like I am really missing something, but I just can't figure out what I'm doing wrong. I'm trying to install an exact version of a package which is not the latest published (
knitr@1.27
). Installingknitr
works fine.Summarized output:
Full output:
Would be great if I could get jetpack running; jetpack is just the missing piece in the R environment for a software developer :-)