Permalink
Browse files

Do not run examples

Because they require internet connection.
  • Loading branch information...
1 parent 93472ec commit a1c3e2ac7644117f2b3b9820e270a8d485adae8b @gaborcsardi gaborcsardi committed Dec 7, 2015
Showing with 17 additions and 10 deletions.
  1. +4 −3 DESCRIPTION
  2. +1 −1 NAMESPACE
  3. +5 −3 R/cranlogs.R
  4. +3 −1 man/cran_downloads.Rd
  5. +3 −1 man/cran_top_downloads.Rd
  6. +1 −1 man/cranlogs.Rd
View
@@ -3,12 +3,13 @@ Title: Download Logs from the 'RStudio' 'CRAN' Mirror
Version: 2.1.0
Maintainer: Gabor Csardi <csardi.gabor@gmail.com>
Author: Gabor Csardi [aut, cre]
-Description: 'API' to the database of 'CRAN' package downloads from the 'RStudio'
- 'CRAN mirror'. The database itself is at <http://cranlogs.r-pkg.org>, see
- <https://github.com/metacran/cranlogs.app> for the raw 'API'.
+Description: 'API' to the database of 'CRAN' package downloads from the
+ 'RStudio' 'CRAN mirror'. The database itself is at <http://cranlogs.r-pkg.org>,
+ see <https://github.com/metacran/cranlogs.app> for the raw 'API'.
License: MIT + file LICENSE
URL: https://github.com/metacran/cranlogs
BugReports: https://github.com/metacran/cranlogs/issues
Imports:
httr,
jsonlite
+RoxygenNote: 5.0.1
View
@@ -1,4 +1,4 @@
-# Generated by roxygen2 (4.1.1): do not edit by hand
+# Generated by roxygen2: do not edit by hand
export(cran_downloads)
export(cran_top_downloads)
View
@@ -35,7 +35,7 @@ top_url <- paste0(base_url, "top/")
#' @family CRAN downloads
#' @export
#' @examples
-#'
+#' \dontrun{
#' ## All downloads yesterday
#' cran_downloads()
#'
@@ -53,6 +53,7 @@ top_url <- paste0(base_url, "top/")
#'
#' ## R downloads
#' cran_downloads("R")
+#' }
cran_downloads <- function(packages = NULL,
when = c("last-day", "last-week", "last-month"),
@@ -151,12 +152,13 @@ fill_in_dates <- function(df, start, end) {
#' @family CRAN downloads
#' @export
#' @examples
-#'
+#' \dontrun{
#' ## Default is last day
#' cran_top_downloads()
#'
#' ## Last week instead
-#'cran_top_downloads(when = "last-week")
+#' cran_top_downloads(when = "last-week")
+#' }
cran_top_downloads <- function(when = c("last-day", "last-week",
"last-month"), count = 10) {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit a1c3e2a

Please sign in to comment.