Package built from source to a PC with no internet connection

Open
#1,982 2 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/renv

All issues in rstudio/renv

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.