You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code causes Error: C stack usage xxx is too close to the limit:
mbm %>% pin_write(wfset_fits1,
name = wfset_s1_name,
description = glue::glue("{prod_name} meanlog prediction workflowsets {transf_msg} {this_rev}"),
metadata = list(dataset_name = DS1_df_name,
dataset_version = DS1vers$version[nrow(DS1vers)],
comment = fit_pin_comment,
tuning_metric = opt_metric,
tidymodels_version = packageVersion("tidymodels"),
R_version = R.version['version.string'][[1]]),
versioned = T)
Guessing `type = 'rds'`Creating new version '20240412T095624Z-d6b98'Error: C stack usage 15909096 is too close to the limit
As a result no data is written to the pin, only the enclosing folder is created.
mbm is a board_folder board, located on local disk.
The problem is triggered by tidymodels_version = packageVersion("tidymodels"). I've narrowed down the issue to write_meta function (it may be in write_yaml or below).
Workaround consists in casting packageVersion result to character.
I'd suggest adding some input sanity checks before writing yaml, or casting to character user-provided input, as default.
BTW, incredibly useful package, using it all the time in my modeling workflows.
BRs,
Mariusz
The text was updated successfully, but these errors were encountered:
I think your workaround (coercing this funny object to character) is definitely the way to go for now @marioem. We do have lots of sanity checks and coercion, etc, before writing to YAML, but this particular thing is pretty weird:
I think the best option for folks in this situation is to coerce ✨ strange ✨ objects such as packageVersion() to something that can be written in YAML, like so:
The following code causes Error: C stack usage xxx is too close to the limit:
As a result no data is written to the pin, only the enclosing folder is created.
mbm
is a board_folder board, located on local disk.The problem is triggered by
tidymodels_version = packageVersion("tidymodels")
. I've narrowed down the issue towrite_meta
function (it may be in write_yaml or below).Workaround consists in casting
packageVersion
result to character.I'd suggest adding some input sanity checks before writing yaml, or casting to character user-provided input, as default.
BTW, incredibly useful package, using it all the time in my modeling workflows.
BRs,
Mariusz
The text was updated successfully, but these errors were encountered: