From b22a6a791b7e49196217d415db083796db3e9401 Mon Sep 17 00:00:00 2001 From: Lorena Pantano Date: Thu, 18 Apr 2024 16:26:59 -0400 Subject: [PATCH] add info to readme on how to import needed functions --- README.Rmd | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.Rmd b/README.Rmd index fbdc880..2cc024e 100644 --- a/README.Rmd +++ b/README.Rmd @@ -31,6 +31,6 @@ library(bcbioR) You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this. -Use `usethis::use_import_from()` to make sure all the imports are correct. +Use `usethis::use_import_from("stringr","str_replace_all")` to add a function you are using in the code. Don't forget to commit and push the resulting figure files, so they display on GitHub and CRAN. diff --git a/README.md b/README.md index ea6ea41..9d10d81 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ library(bcbioR) You’ll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this. -Use `usethis::use_import_from()` to make sure all the imports are -correct. +Use `usethis::use_import_from("stringr","str_replace_all")` to add a +function you are using in the code. Don’t forget to commit and push the resulting figure files, so they display on GitHub and CRAN.