diff --git a/R/read_bin_types.R b/R/read_bin_types.R index ec22125d..5793425d 100644 --- a/R/read_bin_types.R +++ b/R/read_bin_types.R @@ -42,8 +42,8 @@ read_signed_int <- function(raw, cursor, n = 1L) { } #' read character from binary -#' #' @inheritParams read_unsigned_int +#' @param n_char integer with number of desired characters to read from raw #' @param encoding encoding to assign character strings that are read. Default #' is `"latin1"`., which will use Windows Latin 1 (ANSI) encoding. This is #' how Bruker software OPUS is assumed to commonly store strings. diff --git a/man/read_character.Rd b/man/read_character.Rd index 833d377e..7cc7f2d6 100644 --- a/man/read_character.Rd +++ b/man/read_character.Rd @@ -13,6 +13,8 @@ read_character(raw, cursor, n = 1L, n_char, encoding = "latin1") \item{n}{number of elements} +\item{n_char}{integer with number of desired characters to read from raw} + \item{encoding}{encoding to assign character strings that are read. Default is \code{"latin1"}., which will use Windows Latin 1 (ANSI) encoding. This is how Bruker software OPUS is assumed to commonly store strings.}