-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New 'setup' section * Remove load_all() since it's interactive * Start from a blank slate * Update README * Use rlang's %||% so it works with older R * Document
- Loading branch information
1 parent
e013417
commit 4ace5cd
Showing
9 changed files
with
146 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
^_pkgdown\.yml$ | ||
^docs$ | ||
^pkgdown$ | ||
^Taskfile\.yml$ |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(greet) | ||
importFrom(rlang,"%||%") |
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,7 @@ | ||
#' @keywords internal | ||
"_PACKAGE" | ||
|
||
## usethis namespace: start | ||
#' @importFrom rlang %||% | ||
## usethis namespace: end | ||
NULL |
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,43 @@ | ||
version: '3' | ||
|
||
tasks: | ||
load_all: | ||
cmds: | ||
- Rscript -e "devtools::load_all()" | ||
test: | ||
cmds: | ||
- Rscript -e "devtools::test()" | ||
document: | ||
cmds: | ||
- Rscript -e "devtools::document()" | ||
check: | ||
cmds: | ||
- Rscript -e "devtools::check()" | ||
build_site: | ||
cmds: | ||
- Rscript -e "pkgdown::build_site()" | ||
preview_site: | ||
cmds: | ||
- Rscript -e "pkgdown::preview_site()" | ||
tidy_descrition: | ||
cmds: | ||
- Rscript -e "usethis::use_tidy_description()" | ||
style: | ||
cmds: | ||
- Rscript -e "usethis::use_tidy_style()" | ||
spell_check: | ||
cmds: | ||
- Rscript -e "spelling::spell_check_package()" | ||
test_integration: | ||
cmds: | ||
- Rscript -e "devtools::load_all(); testthat::test_dir('tests/integration')" | ||
package_coverage: | ||
cmds: | ||
- Rscript -e "covr::package_coverage()" | ||
build_readme: | ||
cmds: | ||
- Rscript -e "devtools::build_readme()" | ||
run_examples: | ||
cmds: | ||
- Rscript -e "devtools::run_examples()" | ||
|
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,7 @@ | ||
test_that("works", { | ||
expect_equal(greet(), "hello world") | ||
}) | ||
|
||
test_that("con 'Mauro' devuelve hello Mauro", { | ||
expect_equal(greet('Mauro'), "hello Mauro") | ||
}) |