Skip to content
Snippets Groups Projects
Commit d08f401f authored by Ghislain Durif's avatar Ghislain Durif
Browse files

minor modifications

parent ac4203ba
Branches
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ my_package
## [`devtools`](https://devtools.r-lib.org/)
### Tools to Make Developing R Packages Easier • devtools
### Tools to Make Developing R Packages Easier
```{r, eval=FALSE}
# load local package without installing it
......@@ -55,7 +55,7 @@ devtools::build()
devtools::check()
```
#### Additional linls
#### Additional links
- [Package dev cheatsheet](https://devtools.r-lib.org/#cheatsheet)
......@@ -185,7 +185,7 @@ fusen::add_flat_template(path, flat_name = "package")
## [`roxygen2`](https://roxygen2.r-lib.org/)
### In-Line Documentation for R • roxygen2
### In-Line Documentation for R
File `R/add.R`:
......@@ -203,7 +203,7 @@ add <- function(x, y) {
}
```
Automatic generation of `man/add.Rd` with `devtools::document()`
Automatic generation of `man/add.Rd` with `devtools::document()`:
```Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in ./<text>
......@@ -255,11 +255,10 @@ test_that("multiplication works", {
})
```
Automatically run during package check (e.g. with `devtools::check()`) or specifically with `devtools::check()`.
Automatically run during package check (e.g. with `devtools::check()`) or specifically with `devtools::test()`.
## [`checkmate`](https://mllg.github.io/checkmate/)
### Fast and versatile argument checks for R
- `assert_xxx()` fails if assertion not met
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment