This week's data is from the CRAN courtesy of Phillip Massicotte.
He analyzed the lines of code and the different languages in all of the R packages on CRAN.
cran_code <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2019/2019-11-12/loc_cran_packages.csv")
# Or read in with tidytuesdayR package (https://github.com/dslc-io/tidytuesdayR)
# Either ISO-8601 date or year/week works!
# Install via pak::pak("dslc-io/tidytuesdayR")
tuesdata <- tidytuesdayR::tt_load("2019-11-12")
tuesdata <- tidytuesdayR::tt_load(2019, week = 46)
cran_code <- tuesdata$loc_cran_packages
| variable | class | description |
|---|---|---|
| file | double | Number of files |
| language | character | Programming Language |
| blank | double | Blank Lines |
| comment | double | Commented Lines |
| code | double | Lines of Code |
| pkg_name | character | Package Name |
| version | character | Package Version |
Phillip's script can be found at his blog.