rstudio/plumber

document that local variables are ok

开放

#330 创建于 2018年11月2日

 (0 条评论) (0 个反应) (0 位负责人)R (257 个派生)batch import
difficulty: novicedocseffort: lowhelp wanted

仓库指标

星标
 (1,437 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

The router below works as expected.

#* @get /a
(function(){
  cat("sourced!\n")
  function() {
    valueA
  }
})()

#* @get /b
function() {
  valueA
}

valueA <- 4

It should be added to the documentation here: https://www.rplumber.io/docs/runtime.html#environments

Ref: https://github.com/trestletech/plumber/issues/329

贡献者指南