Closed moneyhun closed 3 years ago
furrr is running your options_holidays()
function in a completely separate R process and that R process doesn't know that you've set the default calendar to something else. You'll need to set the default calendar inside the options_holidays()
function to get it to work. It isn't a bug, it is just something to be aware of when working with parallel code
Thanks, that makes sense!
furrr
family functions appear unable to access the options set in thebizdays
package viabizdays.options$set()
. Thepurrr
family functions appear to access these options as expected.See example below:
map
returns the expected output;future_map
indicates that Rmetrics/NYSE has not been set as the default calendar, and returns an empty list of holidays.