Skip to content

Commit 8d5a0b0

Browse files
committed
Use quotes in examples of cpp11::linking_to
1 parent a52aded commit 8d5a0b0

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

R/source.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#' [cpp_function()] compiles and loads a single function for use in R.
55
#' [cpp_eval()] evaluates a single C++ expression and returns the result.
66
#'
7-
#' Within C++ code you can use `[[cpp11::linking_to(pkgxyz)]]` to link to
7+
#' Within C++ code you can use `[[cpp11::linking_to("pkgxyz")]]` to link to
88
#' external packages. This is equivalent to putting those packages in the
99
#' `LinkingTo` field in a package DESCRIPTION.
1010
#'
@@ -42,7 +42,7 @@
4242
#' #include <cpp11/R.hpp>
4343
#' #include <RProgress.h>
4444
#'
45-
#' [[cpp11::linking_to(progress)]]
45+
#' [[cpp11::linking_to("progress")]]
4646
#'
4747
#' [[cpp11::register]] void
4848
#' show_progress() {

cran-comments.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
We cannot use a runnable example for cpp_source as doing so would load a DLL in
2-
to the R session, which is likely undesired when running examples on CRAN's servers.
3-
41
## Test environments
52

63
* GitHub Actions (ubuntu-16.04): 3.3, 3.4, 3.5, oldrel, release, devel
@@ -10,6 +7,4 @@ to the R session, which is likely undesired when running examples on CRAN's serv
107

118
## R CMD check results
129

13-
0 errors | 0 warnings | 1 note
14-
15-
* This is a new release.
10+
0 errors | 0 warnings | 0 note

man/cpp_source.Rd

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

0 commit comments

Comments
 (0)