Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
R_pkg_dev_helper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
R_pkg_dev_helper
Commits
d08f401f
Commit
d08f401f
authored
2 years ago
by
Ghislain Durif
Browse files
Options
Downloads
Patches
Plain Diff
minor modifications
parent
ac4203ba
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R_pkg_dev_helper.qmd
+5
-6
5 additions, 6 deletions
R_pkg_dev_helper.qmd
with
5 additions
and
6 deletions
R_pkg_dev_helper.qmd
+
5
−
6
View file @
d08f401f
...
...
@@ -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 lin
l
s
#### Additional lin
k
s
- [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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment