BREAKING CHANGE
rcompendium (#207ae09).add_github_actions_*() functions. A new generic function add_github_action() has been implemented to set up any GitHub Action. This function downloads YAML files from the GitHub repository (see above), providing more flexibility in updating these files (#87).refresh() is no more available in this version (#91)github_user. The GitHub username is not guessed from gh::gh_whoami() anymore and the user needs to provide it. This new argument has been added to set_credentials() (#125) to permanently store this value.new_*() functions in create_new_*()New features
download_template() to download a file template from the GitHub repo https://github.com/frbcesab/r-templates (#85)add_codeowners() creates a .github/CODEOWNERS fileadd_dependabot() creates a .github/dependabot.yaml file (#102)add_github_action() automatically creates a .github/dependabot.yaml file if one GitHub Action is set up (#89)add_cran_downloads_badge() & add_cran_total_download_badge() adds CRAN downloads badge to the README.Rmd (#96)add_issue_template() creates a .github/ISSUE_TEMPLATE directory and store GitHub issue templates (#119)Bug fixes
rcompendium adds support for IDE other than RStudio (Positron, VSCode, etc.). It creates an empty .here file if the current directory is empty and no project file is found (.vscode/settings.json, .git, etc.)get_all_functions() now do not detect functions defined in tryCatch() (#131)Minor changes
New features
add_github_actions_codemeta() creates a codemeta.json file at the root of the project and adds a GH action to automatically update this file by GitHub servers.Bug fixes
get_all_functions() better detects functions (e.g. function ())get_all_functions() ignores julia_library() functionsget_all_functions() screens Quarto filesadd_sticker() copies the sticker template in figures/readme/ and no more in man/figures/ (listed in the .gitignore)Minor changes
crayon and clisymbols in favor of cliadd_compendium() does not create subfolders in data/Bug fixes
get_deps_*() better detects project dependencies and does not delete
packages called w/ library("pkg") or library('pkg')add_sticker() now copies the sticker template for compendiumMinor changes
New features
get_git_branch_name() detects git branch nameadd_contributing() adds a CONTRIBUTING.md file and issue templatesadd_code_of_conduct() adds a CODE_OF_CONDUCT.md fileadd_github_actions_citation() adds a new GitHub action to update the
CITATION.cff fileadd_github_actions_document() adds a new GitHub action to update Rd files,
the NAMESPACE and the DESCRIPTION filesImprovements
get_deps_*() better detects project dependenciesadd_compendium() allows now the user to choose its own compendium structureMinor changes
yaml files)man/ folder and NAMESPACE are now untracked by git (for compendium only)lifecycle and status arguments in new_package()new_*() functions (conventional commits)Deprecated
refresh() is now deprecated and will be deleted in the new versionyaml files)add_readme_rmd()renv files (R build and GitHub) in add_renv()add_dockerfile() creates a basic Dockerfile in compendium (new
argument dokerfile in new_compendium()) based on rocker/rstudio.add_renv() initialize renv environment in compendium (new
argument renv in new_compendium())add_github_actions_render() will automatically render
the README.md on GitHub server after each push. This action is triggered
only if the README.Rmd has been modified since the last commit. Also
add new argument gh_render in new_*() functions.add_dependencies() allows now missing R/ folder and improves the
detection of dependencies in vignettes.add_lifecycle_badge() does not copy badge SVG in the project
anymore. The image badge is now created using https://shields.io/.cph (copyright holder) tag in DESCRIPTION fileinst/package-sticker/
to easily change the hexStickergh_check and website are now FALSE by defaultrscripts/ folder to analyses/paper/ folderAfter first submission to CRAN:
DESCRIPTION file: replace "The aim of the package 'rcompendium' is to make
easier..." by "Makes easier..."set_credentials() does not write the .Rprofile file anymore
(not allowed by CRAN policies). Instead this function opens this file and users
need to manually paste the content of the clipboard.utils::installed.packages() by find.package()new_compendium() and add_compendium().gitignore and .Rbuildignore several namesadd_testthat(), add_github_actions_codecov(),
add_github_actions_codecov_badge(), and add_codecov_badge()new_package(): test and codecov@examples sectionsDESCRIPTION fieldsgh::gh_whoami() (no more github argument)import argument into compendiumvignettes/ (remove argument suggest)tests/path_proj()usethis::proj_get() instead of here::here()add_github_badge() in add_github_actions_check_badge()add_github_actions_pkgdown_badge()new_package()