RSSAmplifier

Blog

%>% dreams

Isabella Velásquez Personal Website

ivelasq.rbind.ioRSS feed ↗20 posts

Latest posts

Porting my favorite RStudio color theme to Positron

My favorite RStudio theme My favorite color theme in RStudio is Tomorrow Night Bright . It’s an excellent, dark, high-contrast (‘bright’) theme that I’ve used consistently since I first started using RStudio. Originally written by Chris Kempson as one of the variants included in the MIT-licensed Tomorrow theme series, it has been ported widely to many editors, and is included as a default color…

Quarto dashboard creation and automation

John White Alexander, Study in Black and Green I had the opportunity to present an automated Quarto dashboard on Posit’s Monthly End-to-End Workflow with Posit Team , followed by a Q&A . The project involved a script that retrieves Consumer Price Index (CPI) data from the Bureau of Labor Statistics (BLS) API, processes and cleans the data, and saves it as a pin using the {pins} package to Posit…

Six not-so-basic base R functions

Leonetto Cappiello, Benedictine R is known for its versatility and extensive collection of packages. As of the publishing of this post, there are over 23 thousand packages on R-universe . But what if I told you that you could do some pretty amazing things without loading any packages at all? There’s a lot of love for base R, and I am excited to pile on. In this blog post, we will explore a few of…

Using flexdashboard to create a GitHub Actions-powered YouTube feed

Utagawa Yoshikazu, Early Foreign Photographer in Yokohama R-Ladies organizes a multitude of inspiring and exciting Meetups worldwide. However, due to work, time zones, or other commitments, I can’t attend them all. Fortunately, since the pandemic began, many Meetup hosts have started to record webinars and post them online. This provides a great opportunity to catch up on things I’ve missed…

Setting up macOS as an R data science rig in 2023

TL;DR In this post, we cover our preferred setup for R on macOS going into 2023. We highlight these awesome tools: Homebrew , Git , zsh , Oh My Zsh , rig , the R packages { usethis } and { gitcreds }, and Quarto . If you prefer to look at a short list than read through a long-form blog post, much of the information below is summarized in this dotfiles repository. Keeping your own dotfiles…

Three packages that port the tidyverse to Python

Johannes Vermeer, The Allegory of Painting (1666) As I’ve been saying every year for the past seven years or so, I am learning Python. (It’s been a journey.) Python packages like pandas have several ways to work with data. There are several options for indexing, slicing, etc. They have a lot of flexibility but also a lot of conventions to remember. I am familiar with the grammar of the tidyverse ,…

Understanding the native R pipe |>

Henri-Edmond Cross, Landscape with Stars, (1905–1908) A while back, I wrote this tweet showing many (not all!) of the ways one might search for a particular set of columns in a data frame using R. Several of these approaches used the {magrittr} pipe ( %>% ) and the native R pipe ( |> ), the latter of which has been available since R version 4.1.0. The {magrittr} and native R pipes work in…

Creating a dataset from an image using reticulate in R Markdown

Henri Rousseau, Virgin Forest with Sunset (1910) Last week, a paper started making the Twitter rounds. Selective attention in hypothesis-driven data analysis by Professors Itai Yanai and Martin Lerche looked into whether providing specific hypotheses prevented students from fully exploring a dataset. The authors artificially created a dataset that, when plotted, clearly showed the outline of a…

Why I’m excited to join RStudio, told through a blogdown metadata project

Vincent van Gogh, The Olive Trees (1889) I am excited to announce that I’ve joined the RStudio Marketing team! I will be creating content on the RStudio Blog that will announce news and share stories from the company, users, and partners. I just started this week and, ready to jump in, I decided that I’d like to deep dive into previous blog posts. The RStudio blog is written using blogdown and…

Politely scraping Wikipedia tables

Pauline Powell Williams, Violets (1890) Wikipedia is such an amazing website, and also a fantastic source of data for analysis projects. I often find myself scraping Wikipedia’s tables for information and then cleaning and using the data for whatever I am working on. However, scraping a website can create issues if not done properly. Though not required, I like to use the {polite} package to…

Getting started in #rtistry

E. A. Séguy, Vintage flower patterns (1925) Artists in the R community have been using the #rtistry hashtag to demonstrate their gorgeous, dynamic art using only the R programming language. Their creations are amazing and they inspired me to try out generative art this dreary Sunday. I am proud to showcase my first #rtistry plot ever! Kinda reminds me of KidPix (remember KidPix?!). I wanted to…

Exploring other ggplot2 geoms

Vincent Van Gogh, Flower Beds in Holland (1883) R users are incredibly fortunate to work in an open-source community that creates and shares resources that make our work even better. The {ggplot2} package comes with incredibly useful geoms (geometric objects) to create visualizations. A full list of these can be found in the reference documents for {ggplot2}. These include: geom_bar and geom_col…

Preparing a manuscript for publication using bookdown

Winslow Homer, Maine Coast (1896) My co-authors Ryan , Emily , Jesse , Josh , and I published our book last year, but Data Science in Education Using R is also available online as a bookdown on a website, available to all. {bookdown} is an R package that facilitates writing books and long-form articles/reports with R Markdown. R Markdown is a file format that allows you to write using markdown, a…

Remote pair programming in R using Visual Studio Code and Live Share

Edgar Degas, Dancers Practicing at the Barre (1877) The Problem State of the Code Editors Installation Configuration Writing an R Package Using VS Code Live Share Tutorial Final Thoughts The problem Way back in the Before Time , my older brother and I worked together on an R package called {wizehiver} . To collaborate, we used many tools. We had an email thread (of over 35 emails!) that eventually…

Browse and search liked Tweets using R

Rijksmuseum, Pigeons in white and blue (1928) The other day, I was scrolling through my “liked” Tweets and got maybe 100 deep when I accidentally clicked a hyperlink and had to restart scrolling from the beginning. The experience made me so frustrated that I started looking up easier ways of perusing one’s likes. I found this tutorial that walked through how to pull liked Tweets into a CSV using…

An even easier-to-use R package for school district shapefiles

Piet Mondrian, Tableau No. 2/Composition No. VII (1913) An update to leaidr A few months ago, I created {leaidr} for easier download of U.S. school district shapefiles. Daniel Anderson went through and greatly improved the package, making it even easier to download and use the shapefiles (thanks Dan!). Now, instead of having to run lea_prep() , you can download the shapefiles from Dan’s Github…

Party with R: How the community enabled us to write a book

Henri de Toulouse-Lautrec, Marcelle Lender Dancing the Bolero in Chilpéric (1895-1896) It is like a party all the time; nobody has to worry about giving one or being invited; it is going on every day in the street and you can go down or be part of it from your window. - Eleanor Clark Without the R community, Data Science in Education Using R would never have happened. Most evidently, we wouldn’t…

What it takes to tidy Census data

Hendrick Avercamp, Ice-skating in a Village (1610) The U.S. Census releases aggregate data on their Household Pulse Survey . These data are valuable and cover a range of important topics, particularly those related to the COVID-19 pandemic. First of all, let me clarify that I think that the work that the Census does is amazing and I am so glad that these data are available. But, when you download…

Introducing an R package for school district shapefiles

Abraham Mignon, Still Life with Flowers and a Watch (1660 - 1679) I would like to introduce {leaidr} , a package for mapping U.S. school district shapefiles! Inspired by my coauthor Joshua Rosenberg , the goal of {leaidr} is to facilitate the download and use of school district shapefiles. School districts in the U.S. have associated local education agency identification numbers (LEAID) used in…

You CRAN do it

J. Howard Miller, We Can Do It! As the @ WeAreRLadies curator, I asked the Twitterverse for advice when submitting a package to the Comprehensive R Archive Network (CRAN) for the first time. Many people replied and offer their tips, experience, and well wishes. I have summarized everybody’s replies below. THANK YOU all for participating! Here’s what to expect when succeeding to get your package on…