You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. In the script `data-raw/farm_animals.R` write some code to create a small data frame with the names of farm animals and the sound they make.
147
147
3. Run all the code (including the already-present call to `usethis::use_data()`) to create the data and save it in `/data`.
148
-
4. Add an `R/farm_animals.R` script and add some roxygen comments to document the function.
148
+
4. Add an `R/farm_animals.R` script and add some roxygen comments to document the data.
149
149
5. Run `devtools::document()` to create the documentation for the `farm_animals` data. Preview the documentation to check it.
150
150
6. Commit all the changes to your repo.
151
151
@@ -299,8 +299,8 @@ to check requirements beyond the automated checks.
299
299
- Read the community-created [Prepare for CRAN](https://github.com/ThinkR-open/prepare-for-cran) checklist.
300
300
301
301
- Useful functions for additional checks:
302
-
- `goodpractice::gp`
303
-
- `spelling::spell_check_package`
302
+
- `goodpractice::gp()`
303
+
- `spelling::spell_check_package()`
304
304
305
305
## `usethis::use_release_issue()`
306
306
@@ -365,7 +365,7 @@ It's possible that the way your libraries are set up can mask problems with `che
365
365
```{r}
366
366
#| eval: false
367
367
# run once
368
-
install.packages(rhub)
368
+
install.packages("rhub")
369
369
rhub::rhub_setup() # guides through set-up process
370
370
rhub::rhub_doctor() # checks the set-up
371
371
@@ -453,16 +453,16 @@ Fortunately the **revdepcheck** package makes this fairly easy
453
453
```r
454
454
remotes::install_github("r-lib/revdepcheck")
455
455
usethis::use_revdep()
456
-
library(revdepcheck)
457
-
revdep_check()
458
-
revdep_report_cran()
456
+
457
+
revdepcheck::revdep_check()
458
+
revdepcheck::revdep_report_cran()# get intermediate report for cran
459
459
```
460
460
461
461
# Promotion {.inverse}
462
462
463
463
## Promoting your package
464
464
465
-
- Some promotion will/may be done for you: [CRANberries](https://dirk.eddelbuettel.com/cranberries/), [R Views](https://rviews.rstudio.com/) Monthly Top 40,
465
+
- Some promotion will/may be done for you: [CRANberries](https://dirk.eddelbuettel.com/cranberries/),
466
466
search engines (vignette/pkgdown site)
467
467
- Some channels are obvious: personal website, blog, Mastodon (#RStats)
468
468
- Publicize your new package via R Weekly <https://rweekly.org/>
@@ -542,24 +542,18 @@ Blog post: [Package spring cleaning](https://www.tidyverse.org/blog/2023/06/spri
542
542
* Buddy-up
543
543
- Review each other's code
544
544
- Co-author each other's packages
545
-
* Take advantage of events e.g. [Hacktoberfest](https://hacktoberfest.digitalocean.com/), [Closember](https://closember.org/)
545
+
* Take advantage of events e.g. [Hacktoberfest](https://hacktoberfest.digitalocean.com/), Closember
546
546
* Start work on your next package!
547
547
548
548
## Congratulations 🎉 {.inverse .center .center-h}
549
549
550
550
You have written a package!
551
551
552
-
. . .
553
-
554
-
Final session on incorporating Rcpp code into a package.
Please take a few minutes to complete this anonymous [feedback form](https://docs.google.com/forms/d/e/1FAIpQLSenADnqVZfmWCTlz1VMMfuod1qFcqqWd0kaj6ekZ4Y6QFAzlQ/viewform?usp=dialog)
0 commit comments