hadley / r-pkgs

Building R packages
https://r-pkgs.org
Other
881 stars 630 forks source link

Feedback on Chapter 5: Fundamental development workflows #802

Closed jthomasmock closed 1 year ago

jthomasmock commented 2 years ago

Generally, I think mentioning the RStudio Packages global options is worthwhile.

Screen Shot 2022-06-24 at 9 25 33 AM

Also should the ? Developing packages - linked support article instead link out to this book? The support article is quite old and references R 3.1 😬

5.1.3:

5.1.4:

5.2.1

To see the most useful keyboard shortcuts, press Alt + Shift + K or use Help > Keyboard Shortcuts Help.

Beating the Command Palette dead horse again here as an option/callout 🐴

5.4.1

devtools::load_all()
β„Ή Loading regexcite
Warning message:

── Conflicts ────────────────────── regexcite conflicts ──
βœ– hello() masks regexcite::hello()

Did you accidentally source a file rather than using `load_all()`?
Run `rm(list = c("hello"))` to remove the conflicts.
jennybc commented 2 years ago

Perhaps there's scope for a general section on: pick an IDE that knows about R and learn how it facilitates package development workflows. In this book, we recommend and will describe RStudio.

This quote from WTF feels relevant (https://rstats.wtf/project-oriented-workflow.html#ide-support-for-projects), i.e. once you decide to start developing packages, you will really benefit from using a proper IDE for R and learning it well:

Projects are a common and very attractive feature of many IDEs (1.2). Again, the practice of organizing work in projects is not prevalent among long-time coders because they use an IDE. It’s the other way around: one of the attractions of an IDE is that it makes it easier to exploit development practices that have proven to be useful across many languages and domains

jennybc commented 1 year ago

I think through various revisions, especially those contributed by @ateucher, we've addressed this as much as we can.