Skip to content
Branch: master
Find file History

Latest commit

Latest commit 7f57691 Nov 11, 2019


Type Name Latest commit message Commit time
Failed to load latest commit information.
loc_cran_packages.csv add cran R files Nov 11, 2019 Update Nov 11, 2019

Code in CRAN Packages

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.

Get the data!

cran_code <- readr::read_csv("")

# Or read in with tidytuesdayR package (
# Either ISO-8601 date or year/week works!
# Install via devtools::install_github("thebioengineer/tidytuesdayR")

tuesdata <- tidytuesdayR::tt_load("2019-11-12")
tuesdata <- tidytuesdayR::tt_load(2019, week = 46)

cran_code <- tuesdata$loc_cran_packages

Data Dictionary


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.

You can’t perform that action at this time.