Skip to content

Commit 0b0fed9

Browse files
committed
Edit NEWS
1 parent 1c0acb5 commit 0b0fed9

File tree

1 file changed

+126
-102
lines changed

1 file changed

+126
-102
lines changed

NEWS.md

Lines changed: 126 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,75 @@
1-
# usethis (development version)
1+
# usethis 1.5.0
22

3-
## New features
3+
## Git, GitHub (and GitLab)
44

5-
* `use_data()` gains a `version` argument and defaults to serialization format
6-
version 2 (#675).
7-
8-
* `use_data_raw()` accepts a name for the to-be-prepared dataset and opens a
9-
templated R script (#646).
10-
11-
* `git_remotes()` and `use_git_remote()` are new helpers to inspect or modify
12-
Git remote URLs for the repo associated with the active project (#649).
13-
14-
* `use_rcpp_armadillo()` and `use_rcpp_eigen()` are new functions
15-
that set up a package to use RcppArmadillo or RcppEigen, respectively
16-
(#421, @coatless, @duckmayr).
17-
18-
* `use_tutorial()` creates a new interactive R Markdown tutorial, as implemented
19-
by the [`learnr` package](https://rstudio.github.io/learnr/index.html)
20-
(@angela-li, #645).
5+
usethis gains several functions to inspect and manipulate the Git situation for the current project = repository. We also provide more control and visibility
6+
into git2r's workings, especially around credentials (usethis uses git2r for all
7+
Git operations).
218

22-
* `use_ccby_license()` adds a CCBY 4.0 license (#547, @njtierney)
23-
24-
* `git_protocol()` + `use_git_protocol()` and `git_credentials()` + `use_git_credentials()` are new helpers to summon or set git transport protocol (SSH or HTTPS) or git2r credentials, respectively. These functions are primarily for internal use. Most users can rely on default behaviour, but these helpers can be used to intervene if git2r isn't discovering the right credentials (#653).
25-
26-
* `use_github()` tries harder but also fails earlier, with more informative messages, making it less likely to leave the repo partially configured (#221).
27-
28-
* `git_sitrep()` lets you know what's up with your git, git2r and GitHub
9+
* `git_sitrep()` lets you know what's up with your Git, git2r and GitHub
2910
config (#328).
3011

31-
* `git_vaccinate()` vaccinates your global git ignore file ensuring that
32-
you never check in files likely to contain confidential information (#469).
33-
It is called automatically if `use_git_ignore()` creates a new `.gitnore`
34-
file.
35-
36-
* `pr_init()`, `pr_fetch()`, `pr_push()`, `pr_pull()`, and `pr_finish()` are a
37-
new family of helpers designed to help with the GitHub PR process. Currently
38-
they assume that you're working on your own repo (i.e. no fork), but once
39-
we've happy with them, we'll extend to work on more situations (#346).
40-
41-
* New `proj_activate()` lets you activate a project either opening a new
42-
RStudio session (if you use RStudio), or changing the working directory
43-
(#511).
44-
45-
* `use_article()` creates articles, vignettes that are automatically
46-
added to `.Rbuildignore`. These appear on pkgdown sites, but are not
47-
included with the package itself (#281).
48-
49-
* `use_citation()` creates a basic `CITATION` template and puts it in the
50-
right place (#100).
51-
52-
* `use_c("foo")` sets up `src/` and creates `src/foo.c` (#117).
12+
* `git_vaccinate()` vaccinates your global (i.e. user-level) git ignore file.
13+
It adds standard entries for R users, such as `.Rhistory` and `.Rdata`. This
14+
decreases the chance that you commit and push files containing confidential
15+
information (#469).
5316

54-
* `use_devtools()` (#624), `use_conflicted()` (#362), and `use_reprex()` (#465)
55-
help add useful packages to your `.Rprofile`.
17+
* `git_remotes()` and `use_git_remote()` are new helpers to inspect or modify
18+
Git remote URLs for the repo associated with the active project (#649).
5619

57-
* `use_covr_ignore()` makes it easy to ignore files in test coverage (#434).
58-
59-
* `use_github_release()` creates a draft GitHub release using the entries
60-
in `NEWS.md` (#137).
61-
62-
* `use_gitlab_ci()` creates a draft gitlab-ci.yaml for use with GitLab
63-
(#565, @overmar).
20+
* `git_protocol()` + `use_git_protocol()` and `git_credentials()` +
21+
`use_git_credentials()` are new helpers to summon or set Git transport
22+
protocol (SSH or HTTPS) or git2r credentials, respectively. These functions
23+
are primarily for internal use. Most users can rely on default behaviour. Use
24+
these helpers to intervene if git2r isn't discovering the right credentials
25+
(#653). usethis honors the `usethis.protocol` option, which allows you to
26+
express a general preference for SSH vs. HTTPS.
27+
28+
Other improvements and bug fixes:
29+
30+
* `use_github()` tries harder but also fails earlier, with more informative
31+
messages, making it less likely to leave the repo partially configured (#221).
32+
33+
* `use_github()` and `create_from_github()` gain a `protocol` argument
34+
(#494, @cderv).
35+
36+
* `create_from_github()` pulls from upstream master in a fork (#695, @ijlyttle).
6437

65-
* `use_lgpl_license()` automates set up of the LGL license (#448, @krlmlr).
38+
* `use_release_issue()` creates a GitHub issue containing a release checklist,
39+
reflecting the standard practices of the tidyverse team (#338).
6640

67-
* `use_partial_warnings()` helps use add standard warning block to your
68-
`.Rprofile` (#64).
41+
* `use_github_release()` creates a draft GitHub release using the entries in
42+
`NEWS.md` (#137).
6943

70-
* `use_pkgdown_travis()` helps you set up pkgdown for automatic deployment
71-
from travis to github pages (#524).
44+
* `use_gitlab_ci()` creates a `gitlab-ci.yaml` config file for GitLab CI
45+
(#565, @overmar).
7246

73-
* `use_rcpp("foo")` now creates `src/foo.cpp` (#117).
47+
* `use_git_config()` now invisibly returns the previous values of the
48+
settings.
7449

75-
* `use_release_issue()` creates a GitHub issue containing a release checklist
76-
capturing best practices discovered by the tidyverse team (#338)
50+
* `use_github_labels()` has been rewritten be more flexible. You can now supply
51+
a repo name, and `descriptions`, and you can set colours/descriptions
52+
independently of creating labels. You can also `rename` existing labels
53+
(#290).
7754

78-
* `write_union` appends the novel `lines`, but does not remove duplicates from
79-
existing lines (#583, @khailper).
55+
## GitHub pull requests
8056

81-
* New `use_addin()` helps setup necessary binding information for RStudio
82-
addins. (#353, @haozhu233)
57+
We've added **experimental** functions to work with GitHub pull requests. They
58+
are aimed at both a maintainer (who may make, review, and modify pull
59+
requests) and a contributor (who may make or explore pull requests).
8360

61+
* `git_sitrep()` includes a section at the end aimed at describing "pull request
62+
readiness". Expect that to develop and expand.
63+
64+
* `pr_init()`, `pr_fetch()`, `pr_push()`, `pr_pull()`, `pr_finish()`, and
65+
`pr_view()` constitute the new family of helpers. They are designed to be
66+
smart about the significance of remotes with the standard names of `origin`
67+
and `upstream` and to facilitate both internal and external pull requests.
8468

8569
## Partial file management
8670

87-
usethis gains tooling to manage part of a file. This currently used for managing badges in your README, and roxygen import tags:
71+
usethis gains tooling to manage part of a file. This is currently used for
72+
managing badges in your README and roxygen import tags:
8873

8974
* `use_badge()` and friends now automatically add badges if your README
9075
contains a specially formatted badge block (#497):
@@ -94,7 +79,7 @@ usethis gains tooling to manage part of a file. This currently used for managing
9479
<-- badge:end -->
9580
```
9681
97-
* `use_tibble()` and `use_rcpp()` automatically adding roxygen tags to
82+
* `use_tibble()` and `use_rcpp()` automatically add roxygen tags to
9883
to `{package}-package.R` if it contains a specially formatted namespace
9984
block (#517):
10085
@@ -110,12 +95,17 @@ usethis gains tooling to manage part of a file. This currently used for managing
11095
11196
## Extending and wrapping usethis
11297
98+
* New `proj_activate()` lets you activate a project, either opening a new
99+
RStudio session (if you use RStudio) or changing the working directory
100+
(#511).
101+
113102
* `proj_get()` and `proj_set()` no longer have a `quiet` argument. The
114103
user-facing message about setting a project is now under the same control
115104
as other messages, i.e. `getOption("usethis.quiet", default = FALSE)` (#441).
116105
117-
* A new family of `ui_` functions makes it possible to make use of the
118-
user interface of usethis in your own code (#308). There are four families
106+
* A new set of `ui_*()` functions makes it possible to give your own code
107+
the same user interface as usethis (#308). All use the glue and crayon and
108+
packages to power easy interpolation and formatting. There are four families
119109
of functions:
120110
121111
* block styles: `ui_line()`, `ui_done()`, `ui_todo()`, `ui_oops()`,
@@ -130,7 +120,8 @@ usethis gains tooling to manage part of a file. This currently used for managing
130120
131121
## Tidyverse standards
132122
133-
(These standards are used by all tidyverse packages; you are welcome to use them if you find them helpful.)
123+
These standards are (aspirationally) used by all tidyverse packages; you are
124+
welcome to use them if you find them helpful.
134125
135126
* Call `use_tidy_labels()` to update GitHub labels. Colours are less
136127
saturated, docs is now documentation, we use some emoji, and performance is
@@ -153,7 +144,7 @@ usethis gains tooling to manage part of a file. This currently used for managing
153144
GitHub pages. `use_pkgdown_travis()` will help you set that up.
154145
155146
* When starting the release process, call `use_release_issue()` to create a
156-
release checklist issue.
147+
release checklist issue (#338).
157148
158149
* Prior to CRAN submission call `use_tidy_release_test_env()` to update the
159150
test environment section in `cran-comments()` (#496).
@@ -166,43 +157,72 @@ usethis gains tooling to manage part of a file. This currently used for managing
166157
`knitr::opts_chunk$set(comment = "#>", collapse = TRUE)` which should
167158
be used for all Rmds.
168159
169-
## Minor bug fixes and improvements
160+
## New functions not already mentioned
170161
171-
* `browse_github()` now falls back to CRAN organisation (with a warning) if
172-
package doesn't have it's own GitHub repo (#186).
162+
* `use_devtools()` (#624), `use_conflicted()` (#362), and `use_reprex()` (#465)
163+
help add useful packages to your `.Rprofile`.
173164
174-
* `create_*()`restore the active project if they error part way through,
175-
and use `proj_activate()` (#453, #511).
165+
* `use_partial_warnings()` helps the user add a standard warning block to
166+
`.Rprofile` (#64).
176167
177168
* `edit_r_buildignore()` opens `.Rbuildignore` for manual editing
178169
(#462, @bfgray3).
179170
180-
* `edit_r_profile()` and `edit_r_environ()` now respect environment variables
181-
`R_PROFILE_USER` and `R_ENVIRON_USER` respectively (#480).
171+
* `use_lgpl_license()` automates set up of the LGL license (#448, @krlmlr).
182172
183-
* `ui_code_block()` now strips ascii escapes before copying code to clipboard
184-
(#447).
173+
* `use_ccby_license()` adds a CCBY 4.0 license (#547, @njtierney).
174+
175+
* `use_rcpp_armadillo()` and `use_rcpp_eigen()` set up a package to use
176+
RcppArmadillo or RcppEigen, respectively (#421, @coatless, @duckmayr).
177+
178+
* `use_c("foo")` sets up `src/` and creates `src/foo.c` (#117).
179+
180+
* `use_covr_ignore()` makes it easy to ignore files in test coverage (#434).
181+
182+
* `use_pkgdown_travis()` helps you set up pkgdown for automatic build-and-deploy
183+
from Travis-CI to GitHub Pages (#524).
184+
185+
* `use_addin()` does setup for RStudio addins (#353, @haozhu233).
186+
187+
* `use_tutorial()` creates a new interactive R Markdown tutorial, as implemented
188+
by the [`learnr` package](https://rstudio.github.io/learnr/index.html)
189+
(@angela-li, #645).
190+
191+
* `use_article()` creates articles, vignettes that are automatically added to
192+
`.Rbuildignore`. These appear on pkgdown sites, but are not included with the
193+
package itself (#281).
194+
195+
* `use_citation()` creates a basic `CITATION` template and puts it in the
196+
right place (#100).
197+
198+
## Other minor bug fixes and improvements
199+
200+
* `write_union` appends the novel `lines`, but does not remove duplicates from
201+
existing lines (#583, @khailper).
202+
203+
* `use_rcpp("foo")` now creates `src/foo.cpp` (#117).
204+
205+
* `use_data()` gains a `version` argument and defaults to serialization format
206+
version 2 (#675).
207+
208+
* `use_data_raw()` accepts a name for the to-be-prepared dataset and opens a
209+
templated R script (#646).
210+
211+
* `browse_github()` now falls back to CRAN organisation (with a warning) if
212+
package doesn't have its own GitHub repo (#186).
213+
214+
* `create_*()` restore the active project if they error part way through,
215+
and use `proj_activate()` (#453, #511).
216+
217+
* `edit_r_profile()` and `edit_r_environ()` now respect environment variables
218+
`R_PROFILE_USER` and `R_ENVIRON_USER`, respectively (#480).
185219
186220
* `use_description()` once again prints the generated description (#287).
187221
188222
* `use_description_field()` is no longer sensitive to whitespace, which
189223
allows `use_vignette()` to work even if the `VignetteBuilder` field is
190224
spread over multiple lines (#439).
191225
192-
* `use_git_config()` now invisibly returns the previous values of the
193-
settings.
194-
195-
* `use_github()` and `create_from_github()` gain a `protocol` argument. The
196-
default is still `"ssh"`, but it can be changed globally to `"https"` with
197-
`options(usethis.protocol = "https")` (#494, @cderv). For forked
198-
repositories, `create_from_github()` will pull the upstream master
199-
(#695, @ijlyttle).
200-
201-
* `use_github_labels()` has been rewritten be more flexible. You can
202-
now supply a repo name, and `descriptions`, and you can set
203-
colours/descriptions independently of creating labels. You can also `rename`
204-
existing labels (#290).
205-
206226
* `use_logo()` can override existing logo if user gives permission (#454).
207227
It also produces retina appropriate logos by default, and matches the
208228
aspect ratio to the <http://hexb.in/sticker.html> specification (#499).
@@ -211,7 +231,7 @@ usethis gains tooling to manage part of a file. This currently used for managing
211231
212232
* `use_package()` gains a `min_version` argument to specify a minimum
213233
version requirement (#498). Set to `TRUE` to use the currently installed
214-
version (#386). This is used by `use_tidy()` in order to require version
234+
version (#386). This is used by `use_tidy_eval()` in order to require version
215235
0.1.2 or greater of rlang (#484).
216236
217237
* `use_pkgdown()` is now configurable with site options (@jayhesselberth, #467),
@@ -230,8 +250,8 @@ usethis gains tooling to manage part of a file. This currently used for managing
230250
* `use_tidy_versions()` has source argument so that you can choose to use
231251
local or CRAN versions (#309).
232252
233-
* `use_travis()` gains an `ext` argument, defaulting to `"org"`.
234-
Use `ext = "com"` for `https://travis-ci.com`. (@cderv, #500)
253+
* `use_travis()` gains an `ext` argument, defaulting to `"org"`. Use
254+
`ext = "com"` for `https://travis-ci.com` (@cderv, #500).
235255
236256
* `use_version()` asks before committing.
237257
@@ -243,8 +263,6 @@ usethis gains tooling to manage part of a file. This currently used for managing
243263
* `use_version("dev")` now creates a standard "(development version)" heading
244264
in `NEWS.md` (#440).
245265
246-
* withr moves from Suggests to Imports.
247-
248266
* `use_vignette` now checks if the vignette name is valid (starts with letter
249267
and consists of letters, numbers, hyphen, and underscore) and throws an error
250268
if not (@akgold, #555).
@@ -253,6 +271,12 @@ usethis gains tooling to manage part of a file. This currently used for managing
253271
fixing an issue that caused errors in helpers that suggest restarting
254272
RStudio (@gadenbuie, #571).
255273
274+
## Dependency changes
275+
276+
* withr moves from Suggests to Imports.
277+
278+
* purrr and yaml are new in Imports.
279+
256280
# usethis 1.4.0
257281
258282
## File system

0 commit comments

Comments
 (0)