Skip to content

R: use remotes::local_install instead of deprecated devtools::install_local#1530

Open
minrk wants to merge 5 commits intojupyterhub:mainfrom
minrk:install_local
Open

R: use remotes::local_install instead of deprecated devtools::install_local#1530
minrk wants to merge 5 commits intojupyterhub:mainfrom
minrk:install_local

Conversation

@minrk
Copy link
Copy Markdown
Member

@minrk minrk commented Apr 17, 2026

devtools::install_local doesn't work anymore due to missing dependency on remotes, and is deprecated since 2.5.0.

We are not using an independently pinned versions of devtools, despite indications in the code that we appear to intend to. I'm not sure if this loss of pinning is intentional, since I'm not an R expert.

I also don't know the possible implications of this change for repos with older versions. This is just the command the deprecation message pointed me to.

minrk added 2 commits April 17, 2026 14:14
devtools::install_local has been deprecated
@minrk minrk added the bug label Apr 17, 2026
minrk added 2 commits April 17, 2026 16:57
can't seem to _prevent_ writing cache
it leaves files in /tmp/ and ~/.cache/R/pkgcache/
@minrk
Copy link
Copy Markdown
Member Author

minrk commented Apr 18, 2026

I found that we have two choices:

  1. use pak::install_local() which seems to unavoidably leave cache and tmp files for us to cleanup by hand, but appears to be the recommended 'new way' to do it, or
  2. use remotes::install_local() which seems lighter weight, and is the missing dependency for the deprecated devtools::local_install that has stopped working, and doesn't seem to leave extra files around.

pak doesn't work if caches are cleaned
@minrk
Copy link
Copy Markdown
Member Author

minrk commented Apr 18, 2026

huh, cleaning out the cache seems to result in the package not being available with pak, so I guess remotes is the simpler choice.

@minrk minrk changed the title R: use pak::local_install instead of deprecated devtools::install_local R: use remotes::local_install instead of deprecated devtools::install_local Apr 18, 2026
@minrk
Copy link
Copy Markdown
Member Author

minrk commented Apr 18, 2026

this (including #1528) fixes the R tests, #1529 fixes unit tests, with both I think we're all green again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant