Skip to content

Using the ff package with future.callr #588

Answered by HenrikBengtsson
imola asked this question in Q&A
Discussion options

You must be logged in to vote

@imola solved this #588 (reply in thread):

I found out that the reason for this error was that I had an error in my .Rprofile .

The following example illustrates what's going on under the hood:

## Run this example in the temporary folder
opwd <- setwd(tempdir())

## Create a temporary .Rprofile that produces an error
cat("stop('boom')", file=".Rprofile")

## Use callr to evaluate a function
y <- callr::r(function() 42)
#> Error in get_result(output = out, options) : 
#>  callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed

which is why we get:

## Use future.callr
library(future.callr)
plan(callr)
f <- future(42)
value(f)
#> Error: callr subp…

Replies: 2 comments 3 replies

Comment options

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

@imola
Comment options

@imola
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by HenrikBengtsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #587 on January 28, 2022 19:06.