Skip to content

Commit 5eaf11f

Browse files
committed
Unblock example runs
1 parent 60776de commit 5eaf11f

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

R/assignr.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ extract_hw_name = function(x) {
108108
#' @param x A `character` containing the name of the example Rmd.
109109
#'
110110
#' @return File path to the example file that ships with the package.
111+
#' @details
112+
#' The following example files ship with the package:
113+
#' - hw00-main.Rmd
111114
#' @export
115+
#' @examples
116+
#' get_example_filepath("hw00-main.Rmd")
112117
get_example_filepath = function(x) {
113118
fp_example = system.file( "example_rmd" , x , package = "assignr")
114119

@@ -149,15 +154,13 @@ get_example_filepath = function(x) {
149154
#' documents.
150155
#'
151156
#' @examples
152-
#' \dontrun{
153157
#' hw00_file = get_example_filepath("hw00-main.Rmd")
154158
#'
155159
#' if(interactive()) {
156160
#' file.show(hw00_file)
157161
#' }
158162
#'
159163
#' assignr(hw00_file, "test")
160-
#' }
161164
assignr = function(file,
162165
output_dir = NULL,
163166
assign_file = TRUE,

man/assignr-package.Rd

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/assignr.Rd

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_example_filepath.Rd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)