-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile doesn't build when pak is enabled #1991
Comments
Same here, we use a self hosted artifactory repo and we noticed this part of the path has been added: linux/jammy If I were to use your urls as an example, what was (in renv 1.0.7): https://r-lib.github.io/p/pak/stable/source/linux-gnu/x86_64/src/contrib/PACKAGES.rds is now (in renv 1.0.8): Just to give clarification, we have a custom repo defined in our renv.lock, declared as:
I then declare the package dependency as:
I now get these errors: #16 20.21 error downloading 'http://artifactory-prod:8082/artifactory/__linux__/jammy/libs-r-fred/src/contrib/PACKAGES.rds' [error code 22] Whereas the package is at: http://artifactory-prod:8082/artifactory/libs-r-fred/src/contrib/rFredTools_2.0.7.tar.gz Thank you all. Renv is excellent, we just want to understand this change. Best regards |
Thanks for the bug report! I believe this should be fixed in renv 1.0.9, which was just submitted as a hotfix to CRAN. Can you let me know if the issue appears to be resolved in your case? |
Hi Kevin, Wow that was fast ;) I shall test it tomorrow and let you know. Have a good evening! |
Hi @kevinushey, I can confirm that in my case renv 1.0.9 solved the problem, thanks for the very quick fix! What about |
This seems somewhat expected if you're not explicitly using |
It make sense but maybe
|
* tweak inference of repository type * fix up rmarkdown link * ignore changes in mc.cores (can happen when parallel is loaded) * update NEWS; ignore pak in clean (#1991) * tweak check + use of parallel
Hi, when
pak
is enabled, I cannot build the Docker image. It seems thatpak
cannot be installed for linux.I created a repo with an example where
pak
is enabled in the.Rprofile
file and only theggplot2
package is used in the project.To generate the error run the following command, it will save the logs in the
build.log
file:The error that I get is the following:
Moreover, I noticed that
pak
is not recorded in therenv.lock
file.If I run locally
renv::status()
I getNo issues found -- the project is in a consistent state.
or with
renv::snapshot()
I get- The lockfile is already up to date.
Should not
pak
be recorded in the lockfile to fix the version? (although I should probably open another issue for this).The text was updated successfully, but these errors were encountered: