ThinkR-open / attachment

Tools to deal with dependencies in scripts, Rmd and packages
https://thinkr-open.github.io/attachment/
Other
108 stars 13 forks source link

As a dev, I would like a config file that stores parameters for `att_amend_desc()` #75

Closed statnmap closed 1 year ago

statnmap commented 1 year ago

Context

When I have a specific package, I change default parameters of att_amend_desc(), like pkg_ignore or extra.suggest. I'd like to be able to run att_amend_desc() directly in my console, but using my parameters, without having to go to the "dev_history" file where this line of code is written

Validation

Screenshot 2023-04-04 at 12 25 29

(running the last chunk of the flat file dev/flat_save_att_params.Rmd both perform inflate() + att_amend_dec() with saved config :) Screenshot 2023-04-04 at 12 32 38

(when updating config) image

(when using config) image

(e.g., removing two pkgs from suggest) Screenshot 2023-04-04 at 12 57 50

Tech

#' @param update.config logical Should the list of parameter be saved for later use with use.config
#' @param use.config logical Should the att_amend_desc use the parameters saved in config
#' @param path.y character Path to yaml config file
MurielleDelmotte commented 1 year ago

Validate