From 9f941083a18fa6c02a6e0eac6261e658c005e57f Mon Sep 17 00:00:00 2001 From: Mark Niemann-Ross Date: Fri, 26 Apr 2024 16:30:22 -0700 Subject: [PATCH] add \dontrun{} to examples --- R/rpi_pinToBCM.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/rpi_pinToBCM.R b/R/rpi_pinToBCM.R index 9f2fff6..db6feab 100644 --- a/R/rpi_pinToBCM.R +++ b/R/rpi_pinToBCM.R @@ -13,7 +13,9 @@ #' @export #' #' @examplesIf is.rpi() +#' #' \dontrun{ #' rpi_pinToBCM(1) # produces error since pin #1 is not data +#' } #' rpi_pinToBCM(40) # returns a named vector where bcm_line = 21 and pin_name = GPIO21 rpi_pinToBCM <- function(pin_number) { # check pin number. Are all values valid data lines?