Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

retrieve future expression on local machine

Open
#21 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r

Research direction

Review the future.batchtools behavior for the shown plan using login, batchtools_lsf, and multiprocess. Start with the documented lifecycle of a submitted future and determine whether results can be retrieved after the local R session closes or from the remote machine; document the supported behavior and any required persistence mechanism.

Written by the indexing model from the issue text.

Description

feature request question

Hi Henrik,

maybe that's utterly basic and the wrong place to ask, but I thought it might be of interest for more people:

Is there a way you can retrieve a future expressions in the following setup:

login <- tweak(remote, workers = "remote@remote")
bsub <- tweak(batchtools_lsf, ...)
plan(list(
    login,
    bsub,
    multiprocess
))

and I submit the following job (just an example):

y %<-% furrr::future_map_dfr(1:5, function(x){
    cores <- availableCores()
    furrr::future_map_dfr(1:5, function(x){
        tibble::tibble(x = x, 
                       nodename = Sys.info()['nodename'],
                       Sys.getpid = Sys.getpid(), 
                       availableCores = cores) 
    })
}) 

... let's imagine this takes an considerable amount of time and I would close my local r session in between submitting the job and its being finished.

After a login then (and rerunning the same plan again) I can't access y, neither can I access y on the remote machine in an R session. Is that possible in general?

If not, we wondered if you can save R objects somehow in an future_apply, submitted from a local machine and evaluated an a remote one?

Sorry for the very basic questions, just started to fiddle around with future.batchtools.

Cheers
Marco

Dominant language
R
Stars
87
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from futureverse/future.batchtools

All issues in futureverse/future.batchtools

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.