rdev 1.6.4
- Added check to install pre-commit git hook if missing (update
use_rprofile()
)
rdev 1.6.3
-
extra_deps()
no longer reports R as an extra package
rdev 1.6.2
missing_deps()
now excludes base R packages by defaultAdded new checks to
ci()
:missing_deps()
,desc::desc_normalize()
,extra_deps()
,url_check()
, andhtml_url_check()
;ci()
will stop ifmissing_deps()
returns one or more rowsAdded
missing-deps.yaml
GitHub Action
rdev 1.6.1
-
new_branch()
now stashes and restores changes, so that theBump version
commit just changes the version number inDESCRIPTION
rdev 1.6.0
-
missing_deps()
andextra_deps()
now automatically remove the current package andrenv
(inrenv.lock
) from the list ofrenv::dependencies()
rdev 1.5.9
Update
build_analysis_site()
and ‘Analysis Notebook’ R markdown template to use Bootstrap 5 usingbslib
Update rdev pkgdown site to use Bootstrap 5
rdev 1.5.6
- Update
lint_all()
to also check.Rpres
files
rdev 1.5.5
Add option to disable GitHub Pages in
use_rdev_package()
withoptions(rdev.github.pages = FALSE)
Use proper GitHub Pages URL with trailing “/”
rdev 1.5.0
Added styler cache options to
.Rprofile
templateImported
urlchecker::url_check()
,urlchecker::url_update()
, and added a new function,html_url_check()
, to check URLs indocs/
(replacesproof-docs
script)Replaced scripts in
tools/
for automating package setup withinit()
: run aftercreate_github_repo()
, andsetup_analysis()
: run afterinit()
Moved
setup-r
toinst/bin
Increased test coverage
rdev 1.4.8
- Make rdev data.table aware
rdev 1.4.0
Added functions to check dependencies:
missing_deps()
reportsrenv::dependencies()
not in DESCRIPTION,extra_deps()
reportsdesc::desc_get_deps()
not found by renvAdded
renv
check toci()
: ifrenv::status()
is not synchronized,ci()
will stop
rdev 1.3.8
- Fix bugs in tests,
use_analysis_package()
rdev 1.3.6
Updated
.Rprofile
to load current package at startUpdated for R version 4.2.0 (2022-04-22) – “Vigorous Calisthenics”
rdev 1.3.3
- Fixed
ci()
andstage_release()
to correctly usegert::git_status()
to determine if uncommitted changes exist (instead ofgert::git_diff_patch()
)
rdev 1.3.2
Fixed
update_wordlist_notebooks()
: removed duplicate wordsUpdate
use_spelling()
to install test-spelling.R testthat template
rdev 1.3.1
Added
update_wordlist_notebooks()
: Update packageinst/WORDLIST
with words fromspell_check_notebooks()
Updated
spell_check_notebooks()
to use Language field inDESCRIPTION
by default
rdev 1.3.0
Added new options and features to support GitHub Enterprise.
New Options
Added settings, configured using options()
rdev.host
: set the default server forcreate_github_repo()
,stage_release()
,merge_release()
(to support GitHub Enterprise)rdev.codecov
: to disable codecov.io support inuse_codecov()
rdev.dependabot
: to disable support for Dependabot increate_github_repo()
rdev.license
andrdev.license.copyright
: specify licenses forcreate_github_repo()
,use_rdev_package()
rdev.github.actions
: to disable support for GitHub Actions increate_github_repo()
,use_codecov()
,use_rdev_package()
New Features
create_github_repo()
now supports creating repositories within organizationsUpdated
setup-r
script to include pkgdown
rdev 1.2.6
- Updated
stage_release()
to runbuild_rdev_site()
only when_pkgdown.yml
exists
rdev 1.2.5
- Updated
ci()
to run spell check tests
rdev 1.2.4
- Fix bug in workaround for closed usethis issue #1568
rdev 1.2.3
- Updated
use_codecov()
to usesort_rbuildignore()
rdev 1.2.2
Implement workaround for closed usethis issue #1568
use_analysis_package()
now installs dplyr, used in theREADME.Rmd
templateDocumentation updates
rdev 1.2.1
-
create_github_repo()
now adds branch protection to the default branch
rdev 1.2.0
- Added
spell_check_notebooks()
: Perform a spell check on notebooks withspelling::spell_check_files()
.
rdev 1.1.1
Fix R-CMD-check for Windows
check_renv()
now defaults to runningupdate
when interactive
rdev 1.1.0
- Added additional automation to
ci()
:-
style_all()
now runs automatically if there are no uncommitted changes -
lint_all()
now runs by default and opens RStudio markers pane if any lints are found
-
rdev 1.0.0
rdev is now stable enough for a 1.0.0 release!
Major features
rdev provides functions and templates for:
Release automation: Stage and create GitHub releases, including GitHub pages
Continuous Integration: Local continuous integration checks and dependency management
Package Setup: Package setup tasks, typically performed once
Recent changes
Changes since release 0.8.9:
Add
use_spelling()
anduse_codecov()
Added
local_temppkg()
test helper functionMinor enhancements to
use_rdev_package()
,use_analysis_package()
,build_analysis_site()
, README.Rmd templatesUpdated documentation
Added manual test script for new package setup, increased test coverage
rdev 0.8.9
- Bug fixes for
use_rdev_package()
,proof-docs
rdev 0.8.8
- Added
proof-docs
script to tools, checks docs directory using htmlproofer
rdev 0.8.7
Moved
rmd_metadata()
from README-analysis.Rmd to rdev packageIncreased test coverage, reorganized files
rdev 0.8.6
Added code coverage using codecov.io, new tests for existing code
Refactored
sort_file()
rdev 0.8.5
- Critical bug fix for
to_document()
rdev 0.8.4
- Updated
to_document()
to parse yaml front matter and confirm the source file is a valid R Notebook
rdev 0.8.3
- Updated
use_rdev_package()
to better conform to rdev conventions (README.Rmd, .git/hooks/pre-commit), support committing and error-freeci()
immediately after it is run
rdev 0.8.2
- Updated
build_rdev_site()
andbuild_analysis_site()
to abort if there are missing topics in the pkgdown reference section
rdev 0.8.1
- Added
new_branch()
: Create a new feature branch, and (optionally) bump the version in DESCRIPTION
rdev 0.8.0
Major update adding automation for GitHub releases.
Release Automation
Added functions to automate workflow for staging and creating releases on GitHub:
stage_release()
: Open a GitHub pull request for a new release from NEWS.mdget_release()
: Extract release version and release notes from NEWS.md. Called bystage_release()
andmerge_release()
.merge_release()
: Merge a staged pull request and create a new GitHub release
rdev 0.7.3
Updated
build_analysis_site()
to rundevtools::build_readme()
to regenerate the dynamic list of notebooks (in case new notebooks were added)Important update from renv 0.15.0 to 0.15.1
rdev 0.7.2
- Added info on dynamic notebook list to notebook template and Analysis Package Layout vignette
rdev 0.7.1
- Updated
use_analysis_package()
: add dynamic notebook list toREADME.Rmd
template
rdev 0.7.0
Major update adding automation for creating rdev and R analysis packages.
‘Create Package’ Automation
Added functions to automate steps when creating new packages following rdev and optionally analysis package conventions:
create_github_repo()
: Create new GitHub repository following rdev conventions in the active user’s account and create a basic packageuse_rdev_package()
: Add rdev templates and settings within the active package. Normally invoked when first setting up a package.Install templates using
usethis::use_template()
:use_rprofile()
,use_lintr()
,use_todo()
,use_package_r()
Add functionality to
use_analysis_package()
: also install the analysis packageREADME.Rmd
templateChanged both
use_analysis_package()
andbuild_analysis_site()
to write_pkgdown.yml
to the project root and to store in GitHub to make projects discoverable by pkgdown.Updated
setup-r
to install rdev and dependencies insite_library
Other Changes
Added
build_rdev_site()
, a wrapper forpkgdown::build_site()
optimized for rdev workflow that updatesREADME.md
and performs a clean build using pkgdownAdded ‘Analysis Notebook’ R markdown template for RStudio (File > New File > Rmarkdown > From Template)
Migrated ggplot2 themes/styles (
theme_quo()
,viridis_quo()
) to new package,jabenninghoff/jbplot
rdev 0.6.2
- Add functionality to
use_analysis_package()
: Create_base.yml
inpkgdown
from the firstURL
in the packageDESCRIPTION
file.
rdev 0.6.1
- Critical bugfix for
use_analysis_package()
rdev 0.6.0
- Added
use_analysis_package()
: Add the Analysis Package Layout to the current package
rdev 0.5.3
- Add options to
theme_quo()
to disable bothpanel.grid.major
andpanel.grid.minor
forx
andy
rdev 0.5.2
Disable
lintr
by default inci()
, since the normal workflow isstyle_all()
,lint_all()
, thenci()
Documentation fixes
rdev 0.5.1
- Updated
theme_quo()
: set base theme toggplot2::theme_minimal()
and add parameters for disabling grid lines
rdev 0.4.4
- Update
build_analysis_site()
to work withpkgdown
version 2
rdev 0.4.0
Add
devtools::document()
option toci()
, turned on by defaultAdd R Analysis Package layout definition, migrated from rtraining
Update
ci()
to usestyle_all()
andlint_all()
for consistencyAdd
import
directory tobuild_analysis_site()
minor updates, improved tests, maintenance
rdev 0.3.0
-
build_analysis_site()
, new function migrated from rtraining: a wrapper forpkgdown::build_site()
that adds an ‘Analysis’ menu containing rendered versions of all.Rmd
files inanalysis/
. It is still considered Experimental, due to lack of test coverage and some features that are not implemented, but should work for projects with limited pkgdown customization. The update also includes a function to convert notebooks tohtml_document
,to_document()
.
rdev 0.2.0
- installing rdev will now automatically install preferred development tools as a ‘meta-package’ (like tidyverse), including: styler, lintr, rcmdcheck, renv, miniUI (for RStudio Addin support), devtools, and rmarkdown
rdev 0.1.2
- minor updates to package and site (https://jabenninghoff.github.io/rdev/)
rdev 0.1.1
- maintenance release
Updates
ci()
: updated to match my preferred GitHub workflow:use_github_action_check_standard()
with--as-cran
removeddocumentation updates for all functions (style, links)
rdev 0.1.0
Initial GitHub release
New Features
./tools/setup-r
: shell script to install development packages to site repository on macOS + Homebrewcheck_renv()
: convenience function that runsrenv
status()
,clean()
, and optionallyupdate()
(on by default).style_all()
: style all.R
and.Rmd
files in a project usingstyler
lint_all()
: lint all.R
and.Rmd
files in a project usinglintr
sort_file()
: sort a file using Rsort()
, similar to the unixsort
commandsort_rbuildignore()
: sort the.Rbuildignore
file usingsort_file()
, because unsorted is annoyingci()
: run continuous integration tests locally: lint, R CMD check, and style (off by default).