Skip to content

Commit

Permalink
File renaming + new funs
Browse files Browse the repository at this point in the history
This implements the use_module_test,
a function which adds a testing skeleton for
modules.

Close #725
  • Loading branch information
ColinFay committed Sep 24, 2021
1 parent 05e75b6 commit b5b92f7
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 110 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: golem
Title: A Framework for Robust Shiny Applications
Version: 0.3.1.9001
Version: 0.3.1.9002
Authors@R:
c(person(given = "Colin",
family = "Fay",
Expand Down Expand Up @@ -85,3 +85,4 @@ Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
Config/testthat/edition: 3
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export(use_internal_css_file)
export(use_internal_file)
export(use_internal_html_template)
export(use_internal_js_file)
export(use_module_test)
export(use_recommended_deps)
export(use_recommended_tests)
export(use_utils_server)
Expand Down
6 changes: 5 additions & 1 deletion R/add_r_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ add_r_files <- function(

if(file_exists(where) & is.null(module)) {
# Must be a function or utility file being created
append_roxygen_comment(name = name, path = where, ext = ext)
append_roxygen_comment(
name = name,
path = where,
ext = ext
)
}

cat_created(where)
Expand Down
Loading

0 comments on commit b5b92f7

Please sign in to comment.