|
45 | 45 | #' |
46 | 46 | #' This function downlaod these files based on the code from the downlaod page (\url{http://cran-logs.rstudio.com/}) into a temporary folder. |
47 | 47 | #' @details |
48 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 48 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
49 | 49 | #' @param START the defaults is 5 days before today. A character string of the START date for files to be downloaded. The date format is "YYYY-MM-DD". |
50 | 50 | #' @param END the defaults is today. A character string of the END date for files to be downloaded. |
51 | 51 | #' The date format is "YYYY-MM-DD". |
@@ -132,7 +132,7 @@ download_RStudio_CRAN_data <- function(START = as.Date(Sys.time())-5, |
132 | 132 | #' This function relies on data.table to run faster. |
133 | 133 | #' WARNING: this function can be quite slow... |
134 | 134 | #' @details |
135 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 135 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
136 | 136 | #' @param log_folder the folder which contains the RStudio CRAN log files that were downloaded to. Default is the temporary folder picked by \link{tempdir}. |
137 | 137 | #' @param use_data_table default is TRUE. A switch for wether or not to use the data.table package |
138 | 138 | #' in order to merge the log files using rbindlist. This function is MUCH faster then the alternative. |
@@ -206,7 +206,7 @@ read_RStudio_CRAN_data <- function(log_folder = tempdir(), use_data_table = TRUE |
206 | 206 | #' classes for the columns date, package, country. It also adds the columns weekday and week. Lastly, it also sets a key. |
207 | 207 | #' |
208 | 208 | #' @details |
209 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 209 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
210 | 210 | #' @param dataset the RStudio CRAN mirror data object |
211 | 211 | #' @param ... not in use. |
212 | 212 | #' @author Felix Schonbrodt, Tal Galili |
@@ -267,7 +267,7 @@ format_RStudio_CRAN_data <- function(dataset, ...) { |
267 | 267 | #' This function is a first template for creating a barplot of the number of downloads a package had in a time period. |
268 | 268 | #' This function is based on some other functions, have a look at the example for more details. |
269 | 269 | #' @details |
270 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 270 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
271 | 271 | #' @param pkg_name a string of the package we are interested in checking. |
272 | 272 | #' @param dataset a dataset output from running \link{read_RStudio_CRAN_data}. |
273 | 273 | #' @param remove_dups default is TRUE. Should the duplicate user ids (based on their ips) be removed. If TRUE, then the plot is the number of unique users who have downloaded our package everyday. |
@@ -322,7 +322,7 @@ barplot_package_users_per_day <- function(pkg_name, dataset, remove_dups = TRUE, |
322 | 322 | #' This function gets a vector of package names, and returns a line plot of |
323 | 323 | #' number of downloads for these packages per week. |
324 | 324 | #' @details |
325 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 325 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
326 | 326 | #' @param pkg_names a character vector of packages we are interested in checking. |
327 | 327 | #' @param dataset a dataset output from running \link{read_RStudio_CRAN_data}, after going through \link{format_RStudio_CRAN_data}. |
328 | 328 | #' @param by_time by what time frame should packages be plotted? defaults to "date", but can also be "week" |
@@ -401,7 +401,7 @@ lineplot_package_downloads <- function(pkg_names, dataset, by_time = c("date", " |
401 | 401 | #' @description |
402 | 402 | #' Gives the top "x" most downloaded packages. |
403 | 403 | #' @details |
404 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 404 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
405 | 405 | #' @param dataset a dataset output from running \link{read_RStudio_CRAN_data}, after going through \link{format_RStudio_CRAN_data}. |
406 | 406 | #' @param n the number of top packages to show. |
407 | 407 | #' @param ... not in use. |
@@ -435,7 +435,7 @@ most_downloaded_packages <- function(dataset, n = 6L,...) { |
435 | 435 | #' @description |
436 | 436 | #' Plots a worldmap colored by the number of users installation for a given package |
437 | 437 | #' @details |
438 | | -#' RStudio maintains its own CRAN mirror, \url{http://cran.rstudio.com} and offers its log files. |
| 438 | +#' RStudio maintains its own CRAN mirror, \url{https://cran.rstudio.com} and offers its log files. |
439 | 439 | #' @param pkg_name a character string of the package we are interested in. |
440 | 440 | #' @param dataset a dataset output from running \link{read_RStudio_CRAN_data}. |
441 | 441 | #' @param remove_dups logical (default is TRUE). Should the duplicate user ids (based on their ips) be removed. |
|
0 commit comments