Skip to content

Conversation

simonpcouch
Copy link
Collaborator

Closes #234.

Looks like we first introduced support for future in this package a little over a year ago. Opted not to raise a warning with only a foreach backend registered, as CRAN tune does, as it would be redundant with that warning.

@simonpcouch simonpcouch requested a review from topepo April 25, 2025 18:19
Copy link
Member

@topepo topepo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One question about warnings

Addresses:

```
❯ checking dependencies in R code ... WARNING
  '::' or ':::' import not declared from: ‘foreach’
  Namespace in Imports field not imported from: ‘doFuture’
    All declared Imports should be used.

❯ checking R code for possible problems ... NOTE
  multi_net_helper : <anonymous>: no visible binding for global variable
    ‘.sum’
    (/home/runner/work/stacks/stacks/check/stacks.Rcheck/00_pkg_src/stacks/R/expressions.R:175-184)
  Undefined global functions or variables:
    .sum
```

Considering inlining `foreach::getDoParWorkers()` but will just remove that dependency when the warning is removed.
@simonpcouch simonpcouch merged commit 2e839fb into main Apr 30, 2025
14 checks passed
@simonpcouch simonpcouch deleted the parallel-234 branch April 30, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move away from foreach inside of fit_members()
2 participants