carpentries-incubator / targets-workshop

Pre-alpha {targets} workshop
https://carpentries-incubator.github.io/targets-workshop/
Other
33 stars 8 forks source link

parallelization example hangs when rendering #26

Open joelnitta opened 1 year ago

joelnitta commented 1 year ago

These lines work fine when running interactively, but hang when rendering with sandpaper::build_lesson():

https://github.com/carpentries-incubator/targets-workshop/blob/2c19e320e12a9cf8e55016bdcbb81b57c5dd2bc7/episodes/parallel.Rmd#L132-L138

It seems that in the latter case, all cores are getting used instead of just 2.

Work-around for now is to hard-code the output, but obviously that is not ideal.