I'm doing an R package. In a roxygen2
example, there is an accented letter:
#' @examples
#' ......
#' plateDesign = list(
#' "design" =
#' data.frame(
#' "col1" = "BSCPDSPX01 T0 Far",
#' "col2" = "Buffer PD Optimisé Far", # <-- accented letter here
#' "col3" = "No reference selected",
#' "col4" = "Blue",
#' "col5" = 2,
#' stringsAsFactors = FALSE
#' ),
#' ......
When I run this example locally, there's no issue. But there's an error if it is ran with R CMD CHECK or with devtools::run_examples()
.
Here is what one can see when one runs devtools::run_examples()
:
data.frame(
"col1" = "BSCPDSPX01 T0 Far",
"col2" = "Buffer PD Optimisé Far",
What should I do to handle this accented letter? My files are saved in UTF-8 encoding.
The issue also occurs in the .Rd
file:
data.frame(
"col1" = "BSCPDSPX01 T0 Far",
"col2" = "Buffer PD Optimisé Far",