# NOT RUN {
library(furrr)
library(dplyr) # for the pipe
# }
# NOT RUN {
plan(multiprocess)
# }
# NOT RUN {
# Convert each col to character, in parallel
future_modify(mtcars, as.character)
iris %>%
future_modify_if(is.factor, as.character) %>%
str()
mtcars %>% future_modify_at(c(1, 4, 5), as.character) %>% str()
# }
Run the code above in your browser using DataLab