From 9fff63a6f3e409e5c46036db1229b617a5baef87 Mon Sep 17 00:00:00 2001 From: Jonathan Carroll Date: Tue, 26 Sep 2017 22:42:56 -0700 Subject: [PATCH] removed \donttest for mathpix example added cran-comments ignored README --- .Rbuildignore | 1 + R/connect.R | 3 +-- cran-comments.md | 5 +++-- man/mathpix.Rd | 3 +-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index b422a7f..ee97f07 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,6 +1,7 @@ ^.*\.Rproj$ ^\.Rproj\.user$ ^README\.Rmd$ +^README\.md$ ^README-.*\.png$ ^revdep$ ^\.travis\.yml$ diff --git a/R/connect.R b/R/connect.R index 3326a64..5bedbd5 100644 --- a/R/connect.R +++ b/R/connect.R @@ -142,10 +142,9 @@ rmarkdown_block <- function(img, trial = FALSE) { #' @export #' #' @examples -#' \dontrun{ #' mathpix(system.file("eq_no_01.png", package = "mathpix")) #' ## returns -#' ## $$\n \\int \\frac { 4x } { \\sqrt { x ^ { 2} + 1} } d x \n$$} +#' ## $$\n \\int \\frac { 4x } { \\sqrt { x ^ { 2} + 1} } d x \n$$ mathpix <- function(img, trial = FALSE) { block <- rmarkdown_block(img, trial) diff --git a/cran-comments.md b/cran-comments.md index ef87595..c544e90 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,8 +1,9 @@ ## Test environments -* local ubuntu 16.04.2, R 3.4.0 +* local ubuntu 16.04.2, R 3.4.1 * rhub check_on_windows() x86_64-w64-mingw32 (64-bit), R 3.4.1 * rhub check_on_linux() x86_64-pc-linux-gnu (64-bit), R 3.4.1 * rhub check_on_macos() 10.11 El Capitan, x86_64-apple-darwin15.6.0 (64-bit), R 3.4.1 +* rhub check_for_cran() * travis-ci ubuntu 12.04.5, R 3.4.1 * win-builder (devel, release, and oldrelease) @@ -24,5 +25,5 @@ Resubmitting after applying recommended changes: - updated titles - added examples - made unnecessary functions internal - + - included example without \dontrun --- diff --git a/man/mathpix.Rd b/man/mathpix.Rd index 14dd5ce..00783ac 100644 --- a/man/mathpix.Rd +++ b/man/mathpix.Rd @@ -30,10 +30,9 @@ be used (as found on the mathpix API documentation site). Refer to \url{https://docs.mathpix.com/} for full details. } \examples{ -\dontrun{ mathpix(system.file("eq_no_01.png", package = "mathpix")) ## returns -## $$\\n \\\\int \\\\frac { 4x } { \\\\sqrt { x ^ { 2} + 1} } d x \\n$$} +## $$\\n \\\\int \\\\frac { 4x } { \\\\sqrt { x ^ { 2} + 1} } d x \\n$$ } \references{ \url{https://mathpix.com/}