Skip to content

Commit 7c25468

Browse files
committed
Edit README
1 parent 71f1f21 commit 7c25468

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

β€ŽREADME.Rmdβ€Ž

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ output: github_document
88
knitr::opts_chunk$set(
99
collapse = TRUE,
1010
comment = "#>",
11-
fig.path = "man/figures/README-"
11+
fig.path = "man/figures/README-",
12+
out.width = "100%"
1213
)
1314
```
1415

@@ -24,7 +25,13 @@ The goal of usethis is to automate many common package and analysis setup tasks.
2425

2526
## Installation
2627

27-
You can install the development version of usethis from github with:
28+
Install the released version of usethis from CRAN:
29+
30+
```{r, eval = FALSE}
31+
install.packages("usethis")
32+
```
33+
34+
Or install the development version from GitHub with:
2835

2936
```{r, eval = FALSE}
3037
# install.packages("devtools")
@@ -33,7 +40,13 @@ devtools::install_github("r-lib/usethis")
3340

3441
## Usage
3542

36-
All `use_*` functions operate on the current directory unless you specify the `base_path` argument. `βœ”` indicates that usethis has setup everything for you. `●` indicates that you'll need to do some work yourself.
43+
Most `use_*()` functions operate on the *current project*. If you've just used usethis to create a new package or project, that will be the current project. Otherwise usethis tries to confirm that current working directory can be recognized as a project. Use `proj_get()` and `proj_set()` for manual intervention. Some functions have no strong connections to projects and will expect you to provide a path.
44+
45+
usethis is quite chatty, explaining what it's doing and assigning you tasks. `βœ”` indicates something usethis has done for you. `●` indicates that you'll need to do some work yourself.
46+
47+
Below is a quick look at how usethis can help to set up a package.
48+
49+
*Note: usethis is gaining more and more functionality for analytical project that are not packages. Stay tuned.*
3750

3851
```{r}
3952
library(usethis)

β€ŽREADME.mdβ€Ž

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ The goal of usethis is to automate many common package and analysis setup tasks.
1010
Installation
1111
------------
1212

13-
You can install the development version of usethis from github with:
13+
Install the released version of usethis from CRAN:
14+
15+
``` r
16+
install.packages("usethis")
17+
```
18+
19+
Or install the development version from GitHub with:
1420

1521
``` r
1622
# install.packages("devtools")
@@ -20,7 +26,13 @@ devtools::install_github("r-lib/usethis")
2026
Usage
2127
-----
2228

23-
All `use_*` functions operate on the current directory unless you specify the `base_path` argument. `βœ”` indicates that usethis has setup everything for you. `●` indicates that you'll need to do some work yourself.
29+
Most `use_*()` functions operate on the *current project*. If you've just used usethis to create a new package or project, that will be the current project. Otherwise usethis tries to confirm that current working directory can be recognized as a project. Use `proj_get()` and `proj_set()` for manual intervention. Some functions have no strong connections to projects and will expect you to provide a path.
30+
31+
usethis is quite chatty, explaining what it's doing and assigning you tasks. `βœ”` indicates something usethis has done for you. `●` indicates that you'll need to do some work yourself.
32+
33+
Below is a quick look at how usethis can help to set up a package.
34+
35+
*Note: usethis is gaining more and more functionality for analytical project that are not packages. Stay tuned.*
2436

2537
``` r
2638
library(usethis)
@@ -54,7 +66,7 @@ use_dev_package("callr")
5466
# Set up various packages ---------------------------------------------
5567
use_roxygen_md()
5668
#> βœ” Setting Roxygen field in DESCRIPTION to 'list(markdown = TRUE)'
57-
#> βœ” Setting RoxygenNote field in DESCRIPTION to '6.0.1'
69+
#> βœ” Setting RoxygenNote field in DESCRIPTION to '6.0.1.9000'
5870
#> ● Re-document
5971

6072
use_rcpp()
@@ -71,18 +83,13 @@ use_rcpp()
7183
use_revdep()
7284
#> βœ” Creating 'revdep/'
7385
#> βœ” Adding '^revdep$' to '.Rbuildignore'
74-
#> βœ” Adding 'revdep/checks' to './.gitignore'
75-
#> βœ” Adding 'revdep/library' to './.gitignore'
76-
#> βœ” Adding 'revdep/checks.noindex' to './.gitignore'
77-
#> βœ” Adding 'revdep/library.noindex' to './.gitignore'
78-
#> βœ” Adding 'revdep/data.sqlite' to './.gitignore'
86+
#> βœ” Adding 'checks', 'library', 'checks.noindex', 'library.noindex', 'data.sqlite', '*.html' to 'revdep/.gitignore'
7987
#> βœ” Writing 'revdep/email.yml'
8088
#> ● Run checks with `revdepcheck::revdep_check(num_workers = 4)`
8189

8290
# Set up other files -------------------------------------------------
8391
use_readme_md()
8492
#> βœ” Writing 'README.md'
85-
#> ● Edit 'README.md'
8693

8794
use_news_md()
8895
#> βœ” Writing 'NEWS.md'

0 commit comments

Comments
Β (0)