Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat fields argument as additional fields #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikkmart
Copy link

... like tools::write_PACKAGES().

withr::with_tempdir({
  download.packages("cranlike", ".")
  cranlike::update_PACKAGES(fields = c("Title", "Description"))
  read.dcf("PACKAGES")
})
#>      MD5sum                             Package    Version
#> [1,] "542dc9381840cfd998fecd57fc14f560" "cranlike" "1.0.3"
#>      Imports                                               
#> [1,] "DBI, debugme, desc (>= 1.1.0), RSQLite, tools, utils"
#>      Suggests                              License      NeedsCompilation
#> [1,] "covr, mockery, testthat, withr, zip" "GPL (>= 2)" "no"            
#>      Title                               
#> [1,] "Tools for 'CRAN'-Like Repositories"
#>      Description                                                          
#> [1,] "A set of functions to manage 'CRAN'-like repositories\nefficiently."
#>      File                    Filesize
#> [1,] "cranlike_1.0.3.tar.gz" "12493"

Fixes #14.

... like tools::write_PACKAGES().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't include additional fields in PACKAGES
1 participant