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
Describe the bug
I have two functions myfunct1 and myfunct2. myfunct1 uses the myfunct2 function. I want to use these two functions in a foreach()%dopar%{} loop but i get a error:
Error in {: task 1 failed - "unable to find function 'myfunct2'"
To Reproduce
I create util and funct files with this commands:
Thank you for this interesting bug report. It's not so much an issue specific to golem itself, but rather about how to create a function that uses foreach in a package.
My initial attempt was to ensure that the functions myfunct1 and myfunct2 were properly exported. By adding the appropriate @export tags, it works much better:
Hello, thank for your help.
I tried this too: instead of having the value of myfunct2 directly in the myfunct1 function I passed it as an argument to the function
Describe the bug
I have two functions myfunct1 and myfunct2. myfunct1 uses the myfunct2 function. I want to use these two functions in a foreach()%dopar%{} loop but i get a error:
To Reproduce
I create util and funct files with this commands:
utils.util.R
ftc_function.R
app_server.R
session info
The text was updated successfully, but these errors were encountered: