Skip to content

Commit

Permalink
limit example code execution to 2 cores (data.table)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavZim committed Jan 11, 2024
1 parent c9d7dd0 commit 74e402f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion R/read_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
#' @return a data.table containing the messages
#'
#' @examples
#' \dontshow{
#' data.table::setDTthreads(2)
#' }
#' file <- system.file("extdata", "ex20101224.TEST_ITCH_50", package = "RITCH")
#' od <- read_orders(file, quiet = FALSE) # note quiet = FALSE is the default
#' tr <- read_trades(file, quiet = TRUE)
Expand Down Expand Up @@ -471,7 +474,7 @@ read_reg_sho <- function(file, ..., add_descriptions = FALSE) {
#'
#' ## read_market_participant_states()
#' \dontrun{
#' # note the example file has no market participant state information
#' # note the example file has no market participant states
#' mps <- read_market_participant_states(file, add_descriptions = TRUE,
#' quiet = TRUE)
#' mps
Expand Down
5 changes: 4 additions & 1 deletion man/read_functions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74e402f

Please sign in to comment.