-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' Print a Greeting Message | ||
#' | ||
#' Prints a fixed greeting `message`. | ||
#' | ||
#' @return No return value (`NULL`). | ||
#' | ||
#' @keywords other_advanced | ||
#' @family other_advanced | ||
#' | ||
#' @export | ||
#' | ||
#' @examples | ||
#' my_first_fcn() | ||
my_first_fcn <- function() { | ||
message("Welcome to the admiral family!") | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# my_first_fcn ---- | ||
## Test 1: returns NULL ---- | ||
test_that("my_first_fcn Test 1: returns NULL", { | ||
expect_null(my_first_fcn()) | ||
}) | ||
|
||
## Test 2: produces a message ---- | ||
test_that("my_first_fcn Test 2: produces a message", { | ||
expect_message(my_first_fcn(), "^Welcome to the admiral family!\\n$") | ||
}) |