rdev 1.15.1
Minor updates to
upkeep_checklist()Initial upkeep using
use_upkeep_issue()create_github_repo()now opens the new repository on both macOS and Windows
rdev 1.15.0
Added functions
use_upkeep_issue()andupkeep_checklist(), used to open an issue in the package repository with a checklist of maintenance tasks, based onusethis::use_upkeep_issue()andusethis::use_tidy_upkeep_issue()Updated base GitHub Actions (
R-CMD-check,lint,missing-deps) (updateuse_rdev_package())Updated code coverage GitHub Action (
test-coverage) (updateuse_codecov())Updated Get Started vignette with additional notes on replacing RStudio with Positron
rdev 1.14.1
Improved checks for
merge_release()Added new quarto .gitignore exclusions (update
use_analysis_package())Updated Get Started vignette with current usethis advice on storing GitHub credentials
rdev 1.14.0
Added utility function
package_type(): determine rdev package typeAdded an option to update the spelling
WORDLISTtoci()(on by default)
rdev 1.13.0
- Added function
use_gitattributes(): Install rdev .gitattributes template usingusethis::use_template()to set GitHub Linguist overrides
rdev 1.12.3
-
new_branch()now stashes untracked files
rdev 1.12.0
- Updated for
lintr3.2.0 (updateuse_lintr())
rdev 1.11.5
rdev now depends on R >= 4.0.0
use_analysis_package()now records dependency on R native pipes (R >= 4.1.0)
rdev 1.11.4
- Updated “Introduction to rdev” vignette,
vignette("rdev")
rdev 1.11.1
- Enabled pkgdown “light switch” by default for packages using
use_rdev_pkgdown()
rdev 1.11.0
- Added function
package_downloads(): A wrapper forcranlogs::cran_downloads()that summarizes the number of package downloads from the RStudio CRAN mirror
rdev 1.10.8
- Added support for private repositories to
use_rdev_package()
rdev 1.10.7
- Added support for creating private repositories to
create_github_repo()
rdev 1.10.5
- Updated pkgdown templates (update:
use_rdev_pkgdown()oruse_analysis_package(use_quarto = FALSE))
rdev 1.10.4
- Updated GitHub Actions to work better with renv (update from https://github.com/jabenninghoff/rdev/tree/main/.github/workflows)
rdev 1.10.3
- Updated
R-CMD-check.yamlGitHub Action (update:use_rdev_package())
rdev 1.10.2
rdev now supports Quarto Documents (.qmd) as analysis notebooks:
rmd_metadata()will extract the YAML front matter and description from Quarto format (.qmd) notebooks if_quarto.ymlis presentbuild_quarto_site()now supports use of bothRmdand/orqmdnotebooks inanalysisspell_check_notebooks()andupdate_wordlist_notebooks()now check bothRmdandqmdfiles in theanalysisdirectoryUpdated
README.Rmdtemplate to list all.Rmdand.qmdnotebooks inanalysisAdded reference Quarto Document analysis template to
inst/templates/analysis.qmd(RStudio currently doesn’t support.qmdfiles as document templates)Updated vignettes
rdev 1.10.1
- Added an
unfreezeparameter tostage_release(), which is passed on tobuild_quarto_site()
rdev 1.9.10
- Updated
build_rdev_site()andbuild_analysis_site()to usepkgdown::build_site_github_pages()instead ofpkgdown::build_site(), which disables Jekyll rendering and adds aCNAMEif needed
rdev 1.9.9
- Updated quarto configuration (update:
use_analysis_package())
rdev 1.9.8
Added quarto themes (flatly, darkly) (update:
use_analysis_package())Updated analysis template
rdev 1.9.4
- Updated
lintr.yamlGitHub Action to matchlint_all()(update: runuse_rdev_package())
rdev 1.9.3
-
lint_all()andstyle_all()now (properly) excludeR/RcppExports.R
rdev 1.9.0
Adjusted Quarto margins in
_quarto.ymlAdded
?quickstartrdev Quick Start guide to creating a new rdev or analysis package and updated related functions (create_github_repo(),init(),setup_analysis()) and READMEAdded function
setup_rdev(): set up an rdev package for traditional package developmentAdded function
open_files(): open a standard set of files for editing in RStudiosetup_analysis()andsetup_rdev()now callopen_files()if running in RStudio
rdev 1.8.6
- Check function arguments with checkmate
rdev 1.8.5
- Changed
use_analysis_package()to store_freezedirectory in git per Quarto guide
rdev 1.8.4
- Also set GitHub Pages URL in
use_rdev_pkgdown()
rdev 1.8.3
- Check if
pandocis inPATHon launch (update:use_rprofile())
rdev 1.8.2
Added rendering fixes to
use_analysis_package()(update: re-runuse_analysis_package()and update notebooks from Analysis Notebook template)Added function
use_rdev_pkgdown(): add pkgdown with rdev customizations
rdev 1.8.1
Added support for Visual Studio Code to
setup-rQuarto bug fixes
rdev 1.8.0
Added support for Quarto, including:
New function
build_quarto_site(): a wrapper forquarto::quarto_render()that also updatesREADME.mdand optionally deletes the Quarto_freezedirectory to fully re-render the siteNew function
unfreeze(): delete the Quarto_freezedirectory to fully re-render the site whenquarto::quarto_render()is calledUpdated
stage_release()to runbuild_quarto_site()when using QuartoUpdated
use_analysis_package()to use Quarto for publishing by defaultAdded “quarto” package type to
local_temppkg()
Additional changes:
Updated vignettes
Added “Introduction to rdev” getting started vignette
Added a
pkgdown::check_pkgdown()check toci()
rdev 1.7.2
- Updated
.lintrforlintr3.1.1 (updateuse_lintr())
rdev 1.7.1
- Updated installation instructions in README and templates to use
remotesinstead ofdevtools
rdev 1.7.0
- Updated
check_renv()andci()to userenv::status(dev = TRUE), added inrenv1.0.3
rdev 1.6.9
- Disabled use of Posit package manager in
R-CMD-check.yaml(updateuse_rdev_package())
rdev 1.6.6
Replaced
check-standard.yamlwithR-CMD-check.yaml(updateuse_rdev_package())Updated
.lintrforlintr3.1.0 (updateuse_lintr())Updated spelling tests (update
use_spelling())
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.yamlGitHub Action
rdev 1.6.1
-
new_branch()now stashes and restores changes, so that theBump versioncommit 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 usingbslibUpdate rdev pkgdown site to use Bootstrap 5
rdev 1.5.6
- Update
lint_all()to also check.Rpresfiles
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
.RprofiletemplateImported
urlchecker::url_check(),urlchecker::url_update(), and added a new function,html_url_check(), to check URLs indocs/(replacesproof-docsscript)Replaced scripts in
tools/for automating package setup withinit(): run aftercreate_github_repo(), andsetup_analysis(): run afterinit()Moved
setup-rtoinst/binIncreased 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
renvcheck 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
.Rprofileto 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/WORDLISTwith words fromspell_check_notebooks()Updated
spell_check_notebooks()to use Language field inDESCRIPTIONby 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.licenseandrdev.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-rscript to include pkgdown
rdev 1.2.6
- Updated
stage_release()to runbuild_rdev_site()only when_pkgdown.ymlexists
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.RmdtemplateDocumentation 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 runningupdatewhen 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-docsscript 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.Rmdtemplate
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.RmdtemplateChanged both
use_analysis_package()andbuild_analysis_site()to write_pkgdown.ymlto the project root and to store in GitHub to make projects discoverable by pkgdown.Updated
setup-rto install rdev and dependencies insite_library
Other Changes
Added
build_rdev_site(), a wrapper forpkgdown::build_site()optimized for rdev workflow that updatesREADME.mdand 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.ymlinpkgdownfrom the firstURLin the packageDESCRIPTIONfile.
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.majorandpanel.grid.minorforxandy
rdev 0.5.2
Disable
lintrby 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 withpkgdownversion 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
importdirectory 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.Rmdfiles 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-cranremoveddocumentation 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 runsrenvstatus(),clean(), and optionallyupdate()(on by default).style_all(): style all.Rand.Rmdfiles in a project usingstylerlint_all(): lint all.Rand.Rmdfiles in a project usinglintrsort_file(): sort a file using Rsort(), similar to the unixsortcommandsort_rbuildignore(): sort the.Rbuildignorefile usingsort_file(), because unsorted is annoyingci(): run continuous integration tests locally: lint, R CMD check, and style (off by default).
