Skip to content

Commit

Permalink
add \dontrun{} to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mnr committed Apr 26, 2024
1 parent cea7c97 commit 9f94108
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/rpi_pinToBCM.R
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 9f94108

Please sign in to comment.