Skip to content

Commit

Permalink
dev.capture() not dev.cap() (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner authored May 8, 2024
1 parent 9bc85a6 commit 6aa6387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/native.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' red, green, blue, and alpha, so that each get 8 bit, equivalent to 256
#' values. It is very seldom that an R user is subjected to this representation,
#' but it is present in the `nativeRaster` format which can be obtained from
#' e.g. capturing the content of a graphic device (using `dev.cap()`) or reading
#' e.g. capturing the content of a graphic device (using `dev.capture()`) or reading
#' in PNG files using `png::readPNG(native = TRUE)`. It is very rare that you
#' might need to convert back and forth between this format, but it is provided
#' here for completeness.
Expand Down Expand Up @@ -50,4 +50,4 @@ encode_native_c <- function(colour) {
}
decode_native_c <- function(colour) {
.Call(`farver_decode_native_c`, as.integer(colour))
}
}

0 comments on commit 6aa6387

Please sign in to comment.