From fa73d563b254606759656337f6338871d610600d Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Sun, 3 Nov 2024 14:08:09 +0100 Subject: [PATCH 1/2] Fix appearance of nested backticks in man page. --- DESCRIPTION | 2 +- R/compile-dll.R | 2 +- man/compile_dll.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index cec1222..68abcbf 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -33,4 +33,4 @@ Config/Needs/website: tidyverse/tidytemplate Config/testthat/edition: 3 Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2 diff --git a/R/compile-dll.R b/R/compile-dll.R index 64ede07..0089636 100644 --- a/R/compile-dll.R +++ b/R/compile-dll.R @@ -34,7 +34,7 @@ #' @note If this is used to compile code that uses Rcpp, you will need to #' add the following line to your `Makevars` file so that it #' knows where to find the Rcpp headers: -#' `PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`` +#' \verb{PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`} #' #' @inheritParams build #' @param force If `TRUE`, for compilation even if [needs_compile()] is diff --git a/man/compile_dll.Rd b/man/compile_dll.Rd index f0a8253..41bf124 100644 --- a/man/compile_dll.Rd +++ b/man/compile_dll.Rd @@ -78,7 +78,7 @@ takes precedence over this environment variable. Possible values: If this is used to compile code that uses Rcpp, you will need to add the following line to your \code{Makevars} file so that it knows where to find the Rcpp headers: -\verb{PKG_CPPFLAGS=}$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`` +\verb{PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`} } \seealso{ \code{\link[=clean_dll]{clean_dll()}} to delete the compiled files. From 90b0e81d23782b7f9bbbb3c39a8249abf15ab523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Sun, 3 Nov 2024 15:08:47 +0100 Subject: [PATCH 2/2] Prefer markdown in docs --- R/compile-dll.R | 4 +++- man/compile_dll.Rd | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/R/compile-dll.R b/R/compile-dll.R index 0089636..4103f87 100644 --- a/R/compile-dll.R +++ b/R/compile-dll.R @@ -34,7 +34,9 @@ #' @note If this is used to compile code that uses Rcpp, you will need to #' add the following line to your `Makevars` file so that it #' knows where to find the Rcpp headers: -#' \verb{PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`} +#' ``` +#' PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'` +#' ``` #' #' @inheritParams build #' @param force If `TRUE`, for compilation even if [needs_compile()] is diff --git a/man/compile_dll.Rd b/man/compile_dll.Rd index 41bf124..6319904 100644 --- a/man/compile_dll.Rd +++ b/man/compile_dll.Rd @@ -78,7 +78,9 @@ takes precedence over this environment variable. Possible values: If this is used to compile code that uses Rcpp, you will need to add the following line to your \code{Makevars} file so that it knows where to find the Rcpp headers: -\verb{PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'`} + +\if{html}{\out{
}}\preformatted{PKG_CPPFLAGS=`$(R_HOME)/bin/Rscript -e 'Rcpp:::CxxFlags()'` +}\if{html}{\out{
}} } \seealso{ \code{\link[=clean_dll]{clean_dll()}} to delete the compiled files.