Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #1839 Dummy function created #1958

Closed
wants to merge 10 commits into from
6 changes: 6 additions & 0 deletions R/my_first_fcn.R
ashachakma marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#' Created dummy function
#'
#' Outputs "Welcome to the admiral family!"
#'
#' @details returns a welcome greeting
hello_admiral <- function() {{ message("Welcome to the admiral family!") }}
14 changes: 14 additions & 0 deletions man/hello_admiral.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 1 addition & 96 deletions renv.lock
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file shouldn't be updated

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"R": {
"Version": "4.1.3",
"Version": "4.0.5",
"Repositories": [
{
"Name": "CRAN",
Expand Down Expand Up @@ -483,18 +483,6 @@
"Repository": "RSPM",
"Hash": "77bd60a6157420d4ffa93b27cf6a58b8"
},
"fontawesome": {
"Package": "fontawesome",
"Version": "0.2.2",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"htmltools",
"rlang"
],
"Hash": "55624ed409e46c5f358b2c060be87f67"
},
"fs": {
"Package": "fs",
"Version": "1.5.2",
Expand Down Expand Up @@ -631,21 +619,6 @@
],
"Hash": "76147821cd3fcd8c4b04e1ef0498e7fb"
},
"httpuv": {
"Package": "httpuv",
"Version": "1.6.5",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"R6",
"Rcpp",
"later",
"promises",
"utils"
],
"Hash": "97fe71f0a4a1c9890e6c2128afa04bc0"
},
"httr": {
"Package": "httr",
"Version": "1.4.2",
Expand Down Expand Up @@ -815,18 +788,6 @@
],
"Hash": "18e9c28c1d3ca1560ce30658b22ce104"
},
"miniUI": {
"Package": "miniUI",
"Version": "0.1.1.1",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"htmltools",
"shiny",
"utils"
],
"Hash": "fec5f52652d60615fdb3957b3d74324a"
},
"openssl": {
"Package": "openssl",
"Version": "2.0.0",
Expand Down Expand Up @@ -1198,50 +1159,6 @@
],
"Hash": "3f9796a8d0a0e8c6eb49a4b029359d1f"
},
"shiny": {
"Package": "shiny",
"Version": "1.7.1",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"R6",
"bslib",
"cachem",
"commonmark",
"crayon",
"ellipsis",
"fastmap",
"fontawesome",
"glue",
"grDevices",
"htmltools",
"httpuv",
"jsonlite",
"later",
"lifecycle",
"methods",
"mime",
"promises",
"rlang",
"sourcetools",
"tools",
"utils",
"withr",
"xtable"
],
"Hash": "00344c227c7bd0ab5d78052c5d736c44"
},
"sourcetools": {
"Package": "sourcetools",
"Version": "0.1.7",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R"
],
"Hash": "947e4e02a79effa5d512473e10f41797"
},
"spelling": {
"Package": "spelling",
"Version": "2.2",
Expand Down Expand Up @@ -1594,18 +1511,6 @@
],
"Hash": "6c85f015dee9cc7710ddd20f86881f58"
},
"xtable": {
"Package": "xtable",
"Version": "1.8-4",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R",
"stats",
"utils"
],
"Hash": "b8acdf8af494d9ec19ccb2481a9b11c2"
},
"yaml": {
"Package": "yaml",
"Version": "2.3.5",
Expand Down
7 changes: 7 additions & 0 deletions tests/testthat/test-my_first_fcn.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Test 1: hello_admiral() function greets ----
test_that("my_first_fcn Test 1: hello_admiral function greets", {
expect_message(
hello_admiral(),
"Welcome to the admiral family!"
)
})