View source: R/RStudio_CRAN_data.R
format_RStudio_CRAN_data | R Documentation |
This function makes sure the the RStudio CRAN mirror data object has correct classes for the columns date, package, country. It also adds the columns weekday and week. Lastly, it also sets a key.
format_RStudio_CRAN_data(dataset, ...)
dataset |
the RStudio CRAN mirror data object |
... |
not in use. |
RStudio maintains its own CRAN mirror, https://cran.rstudio.com/ and offers its log files.
Returns the re-formated data object.
Felix Schonbrodt, Tal Galili
https://www.nicebread.de/finally-tracking-cran-packages-downloads/
download_RStudio_CRAN_data, read_RStudio_CRAN_data,barplot_package_users_per_day
## Not run: # The first two functions might take a good deal of time to run (depending on the date range) RStudio_CRAN_data_folder <- download_RStudio_CRAN_data(START = '2013-04-02', END = '2013-04-05') # around the time R 3.0.0 was released my_RStudio_CRAN_data <- read_RStudio_CRAN_data(RStudio_CRAN_data_folder) my_RStudio_CRAN_data <- format_RStudio_CRAN_data(my_RStudio_CRAN_data) head(my_RStudio_CRAN_data) lineplot_package_downloads(pkg_names = c("ggplot2", "reshape", "plyr", "installr"), dataset = my_RStudio_CRAN_data) # older plots: # barplots: (more functions can easily be added in the future) barplot_package_users_per_day("installr", my_RStudio_CRAN_data) barplot_package_users_per_day("plyr", my_RStudio_CRAN_data) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.