Open gadenbuie opened 1 year ago
Obviously not the greatest of workarounds, but ...
> original <- renv:::renv_binding_replace(
+ "renv_remotes_resolve_github_modules",
+ function(...) FALSE,
+ envir = asNamespace("renv")
+ )
>
> renv::install("hadley/emo", rebuild = TRUE)
Retrieving 'https://api.github.com/repos/hadley/emo/tarball/3f03b11491ce3d6fc5601e210927eff73bf8e350' ...
OK [downloaded 197.4 Kb in 0.4 secs]
Installing emo [0.0.0.9000] ...
OK [built from source]
Copying emo [0.0.0.9000] into the cache ...
OK [copied to cache in 28 milliseconds]
> packageDescription("emo")
Package: emo
Title: Easily Insert 'Emoji'
Version: 0.0.0.9000
Authors@R: c( person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre")), person("Romain",
"François", , "romain@thinkr.fr", role = c("aut")), person("Lucy", "D'Agostino McGowan", email
= "ld.mcgowan@vanderbilt.edu", role = c("aut")), person("RStudio", role = "cph") )
Description: Makes it easy to insert 'emoji' based on either their name or a descriptive keyword.
Depends: R (>= 2.10)
License: GPL-3
Encoding: UTF-8
LazyData: true
Imports: stringr, glue (>= 1.3.0), crayon, utils, magrittr, assertthat, lubridate, rlang, purrr
RoxygenNote: 6.0.1.9000
URL: https://github.com/hadley/emo
BugReports: https://github.com/hadley/emo/issues
Suggests: testthat, dplyr
Author: Hadley Wickham [aut, cre], Romain François [aut], Lucy D'Agostino McGowan [aut], RStudio [cph]
Maintainer: Hadley Wickham <hadley@rstudio.com>
Built: R 4.2.1; ; 2022-10-18 21:38:08 UTC; unix
RemoteType: github
RemoteHost: api.github.com
RemoteUsername: hadley
RemoteRepo: emo
RemoteRef: master
RemoteSha: 3f03b11491ce3d6fc5601e210927eff73bf8e350
GithubHost: api.github.com
GithubRepo: emo
GithubUsername: hadley
GithubRef: master
GithubSHA1: 3f03b11491ce3d6fc5601e210927eff73bf8e350
-- File: /Users/kevin/Library/R/arm64/4.2/library/emo/Meta/package.rds
In work to fix #1075, packages installed from GitHub that contain submodules now use
git
rather than the GitHub remote types. This might be necessary if the submodule is part of the package source, but it isn't always required and may cause downstream issues with deploying content to Connect that depends on packages installed with these methods.I've set up a reprex repo at gadenbuie/renv-git-submodules. In that repo, using
hadley/emo
installed via renv confusesrsconnect::writeManifest()
.The problem that arises is that I can’t deploy content that uses emo installed with renv 0.16.0 to Connect because
rsconnect::writeManifest()
can’t determine the repository URL.While it's probably worth raising this issue with rsconnect, I still feel that renv should provide a mechanism for overriding this choice, perhaps if installing with an explicit
github::
prefix?