Skip to content
Branch: master
Find file History

Latest commit

Latest commit 7f57691 Nov 11, 2019

Files

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

readme.md

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("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-11-12/loc_cran_packages.csv")

# Or read in with tidytuesdayR package (https://github.com/thebioengineer/tidytuesdayR)
# 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

loc_cran_packages.csv

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

Scripts

Phillip's script can be found at his blog.

You can’t perform that action at this time.