Sat Apr 30 15:17:25 2022 UTC ()
(devel/R-usethis) Updated 2.0.1 to 2.1.5

# usethis 2.1.5

pkgdown-related functions no longer automatically strip a trailing
slash from the pkgdown site URL, in order to play more nicely with
CRAN's URL checks (#1526).

`edit_pkgdown_config()` is a new function that opens the pkgdown YAML
configuration file for the current Project, if such a file exists.

The error thrown when reporting an unsupported GitHub configuration
has been fixed for forward compatibility with a future version of
rlang, i.e. what is anticipated to be rlang v1.0.0.

Version 2.1.4 was never released. Version was advanced from 2.1.4 to
2.1.5 strictly for CRAN (re-)submission purposes.

# usethis 2.1.3

Modified a test to ensure that intermittent GitHub rate limiting does
not lead to ungraceful failure on CRAN.

# usethis 2.1.2

`git_default_branch_rename()` no longer errors on repos where README
exists, but has no badge block.

`git_default_branch_rediscover()` prunes the defunct remote ref to the
old default branch, e.g. `origin/master`.

# usethis 2.1.0

## Git default branch support

usethis has a more sophisticated understanding of the default branch
and gains several functions to support default branch renaming.

* `git_branch_default()` has been renamed to `git_default_branch()`, to place
  it logically in the new family of functions. The old name still works, but
  that won't be true forever.
* `git_default_branch()` is much more diligent about figuring out the default
  branch. Instead of only consulting the local repo, now we integrate local info
  with the default branch reported by the `upstream` or `origin` remote, if
  applicable.
  - This is intended to surface the case where a project has renamed its default
    branch and the local repo needs sync up with that.
* `git_default_branch_rediscover()` is a new function that helps contributors
  update their local repo (and personal fork, if applicable) when a project/repo
  renames its default branch.
* `git_default_branch_rename()` is a new function that helps a repo owner
  rename the default branch (both on GitHub and locally).
* `git_default_branch_configure()` is a new function to set the new Git
  configuration option `init.defaultBranch`, which controls the name of the
  initial branch of new local repos.
* `git_sitrep()` exposes `init.defaultBranch` and surfaces the more
  sophisticated analysis of `git_default_branch()`.

## Other GitHub-related changes

* `git_sitrep()` and `gh_token_help()` try even harder to help people get on the
  happy path with respect to their GitHub PAT (#1400, #1413, #1488, #1489,
  #1497).

* The minimum version of gh has been bumped to help / force more people to
  upgrade to the gh version that supports current GitHub PAT formats
  (@ijlyttle, #1454).

* `use_github_file()` is a new function related to `use_template()`. Instead of
  starting from a local file, `use_github_file()` grabs the contents of an
  arbitrary file on GitHub that the user has permission to read. It supports
  targeting a specific branch, tag, or commit and can follow a symlink (#1407).
  `use_github_file()` now powers `use_github_action()` and friends.

* `use_github_release()` is much more diligent about using any information left
  behind by `devtools::submit_cran()` or `devtools::release()`. Specifically,
  this applies to determining which SHA is to be tagged in the release. And this
  SHA, in turn, determines the consulted versions of DESCRIPTION (for package
  version) and NEWS.md (for release notes) (#1380).

* `use_release_issue()` also takes bullets from `release_questions()`,
  for compatibility with `devtools::release()`.

* `git_vaccinate()`, `edit_git_ignore()`, and `git_sitrep()` are more careful to
  consult, reveal, and set the `core.excludesFile` setting in user's Git
  configuration (#1461).

* `use_github_action_check_full()` has been removed. It's overkill for the
  majority of R packages, which are better off with `use_github_actions()` or
  `use_github_action_check_standard()` (#1490).

* `use_github_pages()` and `use_pkgdown_github_pages()` use a new method for
  creating an empty, orphan `gh-pages` branch. This is necessary due to new
  GitHub behaviour, where it has become essentially impossible to refer to the
  empty tree (#1472).

* `use_github()` can create repositories with `"internal"` visibility, a feature
  that exists within GitHub Enterprise products (#1505).

## Package development

* `use_readme_[r]?md()` no longer includes CRAN installation instructions in the
  initial template; instead, we only include GitHub-based install instructions
  or otherwise prompt the user to update instructions (#1507).

* `use_import_from()` is a new function that puts `@importFrom pkg fun`
  directives into a package in a consistent location (@malcolmbarrett, #1377).

* `DESCRIPTION` files generated by usethis no longer include `LazyData` by
   default, as per new CRAN checks; instead, `LazyData` is now added the first
   time you use `use_data()` (@malcolmbarrett, #1404).

* `use_tidy_eval()` has been updated to reflect current recommendations for
  using (and therefore exposing) tidy eval in other packages (@lionel-, #1445).

* `use_pkgdown()` automatically uses Bootstrap 5 if the pkgdown version supports
  it (anticipated for pkgdown 2.0.0).

* `use_lifecycle()` now imports `lifecycle::deprecated()` (#1419).

* `use_code_of_conduct()` now requires a `contact` argument to supply contact
  details for reporting CoC violations (#1269).

* `use_package()` no longer guides the user on how to use a dependency when no
  change was made (@malcolmbarrett, #1384).

### Aimed at the tidyverse team

These functions are exported for anyone to use, but are aimed
primarily at the maintainers of tidyverse, r-lib, and tidymodels
packages.

* `use_tidy_dependencies()` is a new function that sets up standard dependencies
  used by all tidyverse packages, except those that are designed to be
  dependency free (#1423).

* `use_tidy_upkeep_issue()` is a new function similar to `use_release_issue()`
  that creates a checklist-style issue to prompt various updates (#1416).

* `use_tidy_release_test_env()` has been deleted since we no longer recommend
  including test environments in `cran-comments.md`. There's no evidence that
  CRAN finds it useful, and it's annoying to keep up-to-date  (#1365).

* `use_tidy_github_labels()` is the new name for `use_tidy_labels()` (#1430).

* `use_tidy_github_actions()` takes over for `use_tidy_ci()`, which is now
  deprecated.

## User-level configuration

* `"usethis.overwrite"` is a new option. When set to `TRUE`, usethis overwrites
  an existing file without asking for user confirmation if the file is inside
  a Git repo. The normal Git workflow makes it easy to see and selectively
  accept/discard any proposed changes. This behaviour is strictly opt-in
  (#1424).

* Functions that provide code to load packages in your `.Rprofile` now use
  `rlang::check_installed()` to make sure the package is installed locally
  (@malcolmbarrett, #1398).

* `edit_rstudio_prefs()` and `edit_rstudio_snippets()` should work now on
  case-sensitive OSes, due to a path fix re: the location of RStudio's config
  files (@charliejhadley, #1420).


(mef)
diff -r1.5 -r1.6 pkgsrc/devel/R-usethis/Makefile
diff -r1.7 -r1.8 pkgsrc/devel/R-usethis/distinfo

cvs diff -r1.5 -r1.6 pkgsrc/devel/R-usethis/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/R-usethis/Makefile 2021/05/31 21:50:20 1.5
+++ pkgsrc/devel/R-usethis/Makefile 2022/04/30 15:17:25 1.6
@@ -1,41 +1,47 @@ @@ -1,41 +1,47 @@
1# $NetBSD: Makefile,v 1.5 2021/05/31 21:50:20 mef Exp $ 1# $NetBSD: Makefile,v 1.6 2022/04/30 15:17:25 mef Exp $
2 2
3R_PKGNAME= usethis 3R_PKGNAME= usethis
4R_PKGVER= 2.0.1 4R_PKGVER= 2.1.5
5CATEGORIES= devel 5CATEGORIES= devel
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8COMMENT= Automate package and project setup 8COMMENT= Automate package and project setup
9LICENSE= mit 9LICENSE= mit
10 10
11DEPENDS+= R-clipr>=0.3.0:../../devel/R-clipr 11DEPENDS+= R-clipr>=0.3.0:../../devel/R-clipr
12DEPENDS+= R-cli-[0-9]*:../../devel/R-cli 12DEPENDS+= R-cli-[0-9]*:../../devel/R-cli
13DEPENDS+= R-crayon>=1.3.4:../../devel/R-crayon 13DEPENDS+= R-crayon>=1.3.4:../../devel/R-crayon
14DEPENDS+= R-desc>=1.2.0:../../devel/R-desc 14DEPENDS+= R-desc>=1.2.0:../../devel/R-desc
15DEPENDS+= R-fs>=1.3.0:../../devel/R-fs 15DEPENDS+= R-fs>=1.3.0:../../devel/R-fs
16DEPENDS+= R-gert-[0-9]*:../../devel/R-gert 16DEPENDS+= R-gert-[0-9]*:../../devel/R-gert
17DEPENDS+= R-glue>=1.3.0:../../devel/R-glue 17DEPENDS+= R-glue>=1.3.0:../../devel/R-glue
18DEPENDS+= R-lifecycle-[0-9]*:../../devel/R-lifecycle 18DEPENDS+= R-lifecycle-[0-9]*:../../devel/R-lifecycle
19DEPENDS+= R-purrr>=0.3.2:../../devel/R-purrr 19DEPENDS+= R-purrr>=0.3.2:../../devel/R-purrr
20DEPENDS+= R-rlang>=0.4.0:../../devel/R-rlang 20DEPENDS+= R-rlang>=0.4.0:../../devel/R-rlang
21DEPENDS+= R-rprojroot>=1.2:../../devel/R-rprojroot 21DEPENDS+= R-rprojroot>=1.2:../../devel/R-rprojroot
22DEPENDS+= R-withr>=2.1.2:../../devel/R-withr 22DEPENDS+= R-withr>=2.1.2:../../devel/R-withr
23DEPENDS+= R-rstudioapi>=0.10:../../math/R-rstudioapi 23DEPENDS+= R-rstudioapi>=0.10:../../math/R-rstudioapi
24DEPENDS+= R-clisymbols>=1.2.0:../../textproc/R-clisymbols 24DEPENDS+= R-clisymbols>=1.2.0:../../textproc/R-clisymbols
25DEPENDS+= R-yaml>=2.2.0:../../textproc/R-yaml 25DEPENDS+= R-yaml>=2.2.0:../../textproc/R-yaml
26DEPENDS+= R-curl>=2.7:../../www/R-curl 26DEPENDS+= R-curl>=2.7:../../www/R-curl
27DEPENDS+= R-gh>=1.0.1:../../www/R-gh 27DEPENDS+= R-gh>=1.0.1:../../www/R-gh
28DEPENDS+= R-rappdirs-[0-9]*:../../devel/R-rappdirs 28DEPENDS+= R-rappdirs-[0-9]*:../../devel/R-rappdirs
29DEPENDS+= R-whisker-[0-9]*:../../devel/R-whisker 29DEPENDS+= R-whisker-[0-9]*:../../devel/R-whisker
30 30
 31# Packages suggested but not available: 'magick', 'pkgdown', 'styler'
 32#
 33TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr
 34TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
 35#EST_DEPENDS+= R-magick-[0-9]*:
 36TEST_DEPENDS+= R-mockr-[0-9]*:../../devel/R-mockr
 37TEST_DEPENDS+= R-pkgload-[0-9]*:../../devel/R-pkgload
 38TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
 39TEST_DEPENDS+= R-roxygen2-[0-9]*:../../devel/R-roxygen2
31TEST_DEPENDS+= R-spelling-[0-9]*:../../textproc/R-spelling 40TEST_DEPENDS+= R-spelling-[0-9]*:../../textproc/R-spelling
 41#EST_DEPENDS+= R-styler-[0-9]*:
 42TEST_DEPENDS+= R-testthat-[0-9]*:../../devel/R-testthat
32 43
33USE_LANGUAGES= # none 44USE_LANGUAGES= # none
34 45
35.include "../../math/R/Makefile.extension" 46.include "../../math/R/Makefile.extension"
36.include "../../mk/bsd.pkg.mk" 47.include "../../mk/bsd.pkg.mk"
37 
38 
39# Packages suggested but not available: 'magick', 'pkgdown', 'styler' 
40# 
41# Package required and available but unsuitable version: 'gh' 

cvs diff -r1.7 -r1.8 pkgsrc/devel/R-usethis/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/R-usethis/distinfo 2021/10/26 10:14:09 1.7
+++ pkgsrc/devel/R-usethis/distinfo 2022/04/30 15:17:25 1.8
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.7 2021/10/26 10:14:09 nia Exp $ 1$NetBSD: distinfo,v 1.8 2022/04/30 15:17:25 mef Exp $
2 2
3BLAKE2s (R/usethis_2.0.1.tar.gz) = 57c4bebf1b09bd989cbb49b658c3e244c05474dababc825495644c250eded192 3BLAKE2s (R/usethis_2.1.5.tar.gz) = 415c8859aabff4cb9b3429b5141eaa464ad5c1a04077ea84a65c5c645dfc2422
4SHA512 (R/usethis_2.0.1.tar.gz) = 5b51e23096a687a8e4be2b909a58e9d782b607715badc7cbe22ec691e3f1466dc981fe80488f591a2ce4b06b3e246fc5366ed0faea60dfceefd1d8aae3760811 4SHA512 (R/usethis_2.1.5.tar.gz) = 2dd72b1cfacd964e768ba63270e62f3724c130181dfe22d589b109a7a1f3c6a8087798a2c9f3204e136909662992b16affb1e8921baff7a39a16e42f6d69d14e
5Size (R/usethis_2.0.1.tar.gz) = 306090 bytes 5Size (R/usethis_2.1.5.tar.gz) = 334909 bytes