R-graph-gallery
R-graph-gallery copied to clipboard
Issue reading data for circular bar plot example
Form this tutorial, https://r-graph-gallery.com/web-circular-barplot-with-R-and-ggplot2.html, the line that reads the code throws an error:
hike_data <- readr::read_rds(url('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-11-24/hike_data.rds'))
Error in file(file) : invalid 'description' argument
However, changing to readRDS
from base R works (I also changed the URL here from raw.githubusercontent.com
to simply exchanging blob
to raw
:
hike_data <- readRDS(url('https://github.com/rfordatascience/tidytuesday/raw/master/data/2020/2020-11-24/hike_data.rds'))