library(purrr)
library(furrr)
library(tidyr)
library(dplyr)
example_df <- water_df %>%
define_water_chain() %>%
balance_ions_once()
example_df <- water_df %>%
define_water_chain(output_water = "This is a column of water") %>%
balance_ions_once(input_water = "This is a column of water")
# Initialize parallel processing
plan(multisession, workers = 2) # Remove the workers argument to use all available compute
example_df <- water_df %>%
define_water_chain() %>%
balance_ions_once()
#' #Optional: explicitly close multisession processing
plan(sequential)
Run the code above in your browser using DataLab