Package built from source to a PC with no internet connection
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- r
- Domain
- developer-experience
Research direction
Start with the reported renv::install calls, the copied xgboost.zip, and the package library built from XGBoost 2.0.3.1 on Windows. Determine whether renv supports transferring this package for offline restore or install, and document the supported workflow or the needed change; done means the copied version can be used by renv on the offline PC.
Written by the indexing model from the issue text.
Description
Goal: get a specific version of XGBoost onto a computer with no internet, and installable via renv. This is a bit of an edge case so I understand if there's no current solution. I have built XGBoost v.2.0.3.1 from source following their directions . Thus, I have a library folder with xgboost installed there. It was built rather than installed manually because building from source results in a package around 7MB instead of the ~130MB version that results from renv::install("https://s3-us-west-2.amazonaws.com/xgboost-nightly-builds/release_2.0.0/xgboost_r_gpu_win64_82d846bbeb83c652a0b1dff0e3519e67569c4a3d.tar.gz") (link comes from here).
What can I do so that I could copy this XGBoost version to the other PC that has no internet, and be able to run renv::restore or install for new projects there?
I have attempted zipping the xgboost folder into .zip archive, copying that to my cellar, and running
renv::install(r"[path\to\xgboost.zip]")
renv::install("xgboost@2.0.3")
renv::install("xgboost@2.0.3.1")
# all return
Warning: failed to find binary for 'xgboost 2.0.3.1' in package repositories
Warning: failed to find source for 'xgboost 2.0.3.1' in package repositories
Error: failed to retrieve package 'xgboost@2.0.3.1'
> sessionInfo()
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8
time zone: America/Chicago
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.0 tools_4.4.0 renv_0.17.3
As always, thank you!
- Dominant language
- R
- Stars
- 1.2k
- Forks
- 170
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rstudio/renv
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·