-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When installing a package from GitHub using remotes::install_github() (similarly with devtools) and then writing a manifest, the GitHub repo isn't automatically detected. This is manifested in two ways:
-
If the package is on GitHub but not on CRAN/bioconductor, then the corresponding row in the manifest file just contains many NA values
-
If the package is also on CRAN, then the manifest file writes CRAN as the source but uses the installed version, which is incorrect.
Reproducible example using switchr version 0.14.3 (latest CRAN release):
switchr::switchTo("testlib")
install.packages("remotes")
remotes::install_github("yihui/rmini") # exapmle of a minimal package only on GitHub
remotes::install_github("ropensci/ezknitr") # example of a minimal package on CRAN
switchr::publishManifest()
The resulting manifest file contains the following two lines. Note that the second one says version 0.6.1 even though CRAN only has version 0.6
"rmini",NA,NA,NA,".",NA,"0.0.4"
"ezknitr","https://cran.rstudio.com/src/contrib","CRAN","trunk",".",NA,"0.6.1"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels