What’s New in R: October 28, 2024
Welcome to this week’s edition of What’s New in R! This week, we’re featuring a comprehensive US datasets package, a tip for customizing Quarto output locations, and an exploration of file system operations in R. Let’s dive in!
{usdatasets}
The {usdatasets} package, created by Renzo Cáceres Rossi, is a treasure trove of data about the United States. It includes a wide range of datasets covering topics such as US presidents, states, cities, and even NFL teams. This package is an excellent resource for anyone working on projects related to US demographics, geography, or history, and it’s particularly useful for teaching or practicing data analysis skills with real-world data.
Using project scripts to keep Quarto source and output files organised
Pete Jones shares a handy tip for Quarto users who want more control over their output file locations. By leveraging Quarto’s execute-dir
option and some clever file path manipulation, you can easily move your rendered output to a different directory. This technique is especially useful for keeping your project organized, separating source files from outputs, or setting up automated publishing workflows.
For fs
In this comprehensive blog post, Danielle Navarro takes a deep dive into file system operations using R. She explores various functions from base R and the {fs} package, demonstrating how to perform common tasks like listing files, creating directories, and manipulating file paths. This resource is invaluable for R users looking to improve their skills in file management and automation, especially when dealing with complex project structures or data processing pipelines.
If you enjoyed this issue of What’s New In R, please share it with a friend! And if they want to get What’s New in R directly in their inbox, they can sign up on the R for the Rest of Us website.
Got any ideas for resources I should feature in future issues of What’s New in R? Leave a comment below!
Sign up for the newsletter
Get blog posts like this delivered straight to your inbox.
You need to be signed-in to comment on this post. Login.