Join 📚 James's Highlights
A batch of the best highlights from what Jimmy's read, .
Environment variables, found via Sys.getenv() rather than getOption(), are often used for storing secrets (like GITHUB_PAT for the gh package) or the path to secrets on disk (like TWITTER_PAT for rtweet), or not secrets (e.g. the browser to use for chromote).
Persistent Config and Data for R Packages - R-Hub Blog
None
the gert package can find and return Git’s preferences via gert::git_config_global()
Persistent Config and Data for R Packages - R-Hub Blog
None
For the HTML version of the document we do not want a table of contents as we set toc: no. We specifed a CSS theme called Flatly for our HTML document using theme: "flatly". As of this writing, rmarkdown has a built-in ability to use a range of themes from Bootswatch (https://bootswatch.com/). Alternatively, you can link to a custom CSS fle with the css option. Use html_document to see other options. Notice that we can use no and yes instead of false and true, respectively. We linked to two BibTeX fles with the bibliography option. Using Pandoc syntax, the references will apply to both the PDF and HTML documents. If you want to also enable the creation of a Microsoft Word document, include output: word_document in the header.
Reproducible Research With R and RStudio
Christopher Gandrud
...catch up on these, and many more highlights