Skip to content

Commit 1ce5b18

Browse files
reboot to #784
1 parent 759f21b commit 1ce5b18

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

inst/shinyexample/dev/02_dev.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# Engineering
1515

1616
## Dependencies ----
17-
## Add one line by package you want to add as dependency
18-
usethis::use_package( "thinkr" )
17+
## Amend DESCRIPTION with dependencies read from package code parsing
18+
attachment::att_amend_desc()
1919

2020
## Add modules ----
2121
## Create a module infrastructure in R/

inst/utils/golem_utils_ui.R

+1-2
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ make_action_button <- function(tag, inputId = NULL) {
378378

379379
# UNCOMMENT AND USE
380380
#
381-
# usethis::use_package("markdown")
382-
# usethis::use_package("rmarkdown")
381+
# attachment::att_amend_desc()
383382
#
384383
# To use this part of the UI
385384
#

vignettes/b_dev.Rmd

+5-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ To run the app, go to the `dev/run_dev.R` file, and run the all thing.
3737

3838
### Add dependencies
3939

40-
To be called each time you need a new package as a dependency:
40+
Amend DESCRIPTION with dependencies read from package code parsing.
41+
This function with parse your code and detect `@import` `@importFrom` and `::` to fill the Imports Fields in `DESCRIPTION`
42+
4143

4244
```{r}
43-
usethis::use_package("pkg")
45+
attachment::att_amend_desc()
4446
```
4547

48+
4649
About [package dependencies](https://r-pkgs.org/namespace.html).
4750

4851
### Add modules

0 commit comments

Comments
 (0)