问题标签 [callr]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - 将参数传递给 callr::r() 后台进程并在其中访问它们?
R代码可以像这样在后台进程中运行
当我尝试这样做时,args
我不知道如何访问它们。我尝试了一些明显的事情:
我也尝试使用调试,browser()
但在这种情况下它没有以通常的方式工作。
问题
如何将参数传递给调用的后台进程callr::r()
并在后台进程中访问这些参数?
r - 在执行多会话工作时,future_lapply 说一个包不存在,但是在运行 plan(sequential) 时它工作正常
当我尝试使用future_apply
with 时plan(multisession)
,它说我尝试使用的包不存在。当我使用它时plan(sequential)
,它工作正常。使用时我也遇到同样的错误plan(callr)
。
这是错误:
Error in loadNamespace(name): there is no package called 'fuzzyjoin'
谁能帮我找出解决方案或这里出了什么问题?
我不确定这是否与 future.apply 包或 future 或 globals 包有关,因为我知道它们也参与其中。
这是我的代码显示问题:
由reprex 包于 2022-01-28 创建(v2.0.1)
如果相关,我正在运行 R v4.0.3。