library(purrr)
library(furrr)
library(tidyr)
library(dplyr)
example_df <- water_df %>%
define_water_chain() %>%
balance_ions_chain() %>%
chemdose_ph_chain(naoh = 5)
example_df <- water_df %>%
define_water_chain() %>%
balance_ions_chain(output_water = "balanced ions, balanced life") %>%
chemdose_ph_chain(input_water = "balanced ions, balanced life", naoh = 5)
# 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_chain() %>%
chemdose_ph_chain(naoh = 5)
# Optional: explicitly close multisession processing
plan(sequential)
Run the code above in your browser using DataLab