Skip to content
Discussion options

You must be logged in to vote

I see what's going on. The exclude = "packageStartupMessage" takes place after packages in future.packages are loaded. This is something I can fix in the next release of the future package.

Now, as a workaround, which is actually what I prefer, because it avoids the visual and mental clutter of having to explicitly declare future.packages, is to "guide" futureverse using mclust::... in the code, even if just as a no-op, e.g.

my_fcn <- function(rows) {
    # hint that 'mclust' is needed
    mclust::map
    
    # empty function
}

If you then drop mclust from future.packages, it will be loaded when my_fcn() is called, and then packageStartupMessage will be dropped.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@HenrikBengtsson
Comment options

Answer selected by elgabbas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@HenrikBengtsson
Comment options

@elgabbas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants