Skip to content

replace usethis::use_package with attachment::att_amend_desc() in 02_dev.R #784

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

Closed
VincentGuyader opened this issue Nov 10, 2021 · 2 comments
Assignees

Comments

@VincentGuyader
Copy link
Member

because attachment::att_amend_desc is cool :)

@VincentGuyader VincentGuyader self-assigned this Nov 10, 2021
VincentGuyader added a commit that referenced this issue Nov 10, 2021
VincentGuyader added a commit that referenced this issue Nov 10, 2021
@ColinFay
Copy link
Member

ColinFay commented Nov 10, 2021

My issues right now are:

  • We tend to aim for less dependencies, not more

  • If I do attachment::att_amend_desc() inside golem, it output an incorrect change to DESCRIPTION:

> attachment::att_amend_desc()
Updating golem documentation
i Loading golem
Writing NAMESPACE
Warning: Link to unknown topic in inherited text: tools::print.via.format
Writing NAMESPACE
[+] 4 package(s) added: pkg, s, sass, i.

It will also move a bunch of package :

So as long as the tool is not fully reliable, I'm not sure I want to promote it as a magic tool, even more in a production context where we would want to be able to lower the number of dependencies inside your deployed app: so for example, there is no reason to have in Imports the packages from the test suite.

@statnmap
Copy link
Contributor

You can do

attachment::att_amend_desc(
   pkg_ignore = c("pkg", "s", "sass", "i", "dockerfiler", "pkgbuild", "rsconnect", "processx"),
   extra.suggests = c("dockerfiler", "pkgbuild", "rsconnect", "processx")
)
  • If {glue} is in Imports, it means it is used somewhere in a "R/" file. Dependencies in vignette are added in Suggests.

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

No branches or pull requests

3 participants