Skip to content

publishManifest() unable to automatically detect GitHub packages #17

@daattali

Description

@daattali

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:

  1. If the package is on GitHub but not on CRAN/bioconductor, then the corresponding row in the manifest file just contains many NA values

  2. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions