rstudio/plumber

document that local variables are ok

Open

#330 创建于 2018年11月2日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)R (257 fork)batch import
difficulty: novicedocseffort: lowhelp wanted

仓库指标

Star
 (1,437 star)
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

贡献者指南