Skip to content

Commit 9eacb57

Browse files
committed
CRAN-requested fixes
1 parent 82a9628 commit 9eacb57

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

R/check.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#'
1313
#' @seealso \code{\link{cppXPtr}}
1414
#' @examples
15-
#' \dontrun{
15+
#' \donttest{
16+
#' # takes time to compile
1617
#' ptr <- cppXPtr("double foo(int a, double b) { return a + b; }")
1718
#' checkXPtr(ptr, "double", c("int", "double")) # returns silently
1819
#' checkXPtr(ptr, "int", c("double", "std::string")) # throws error

R/cppXPtr.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
#'
1111
#' @seealso \code{\link{cppFunction}}, \code{\link{checkXPtr}}
1212
#' @examples
13-
#' \dontrun{
13+
#' \donttest{
14+
#' # takes time to compile
1415
#' ptr <- cppXPtr("double foo(int a, double b) { return a + b; }")
1516
#' class(ptr)
1617
#' print(ptr)

cran-comments.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## First submission (resubmission)
22

3-
* Title field fixed.
4-
* Examples added.
3+
* donttest instead of dontrun in examples.
54

65
This package provides Rcpp add-ons for retrieving and checking XPtrs to user-supplied C++ functions.
76

man/checkXPtr.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cppXPtr.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)