From 5b040d8eb998d01688218c04d633354eb7b7545e Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 8 Feb 2024 23:37:13 -0600 Subject: [PATCH] should not use the variable name `res` here since it has been used outside --- R/dynamic.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/dynamic.R b/R/dynamic.R index e1d226d..1d2c354 100644 --- a/R/dynamic.R +++ b/R/dynamic.R @@ -173,9 +173,9 @@ dynamic_site = function( owd = setwd(dir); on.exit(setwd(owd)) setwd(site.dir) req = pre_process(req) - res = response(req) + ret = response(req) req = post_process(req) - add_js(res, js, res$interval, req$PATH_INFO) + add_js(ret, js, res$interval, req$PATH_INFO) }, onWSOpen = function(ws) { ws$onMessage(function(binary, message) in_dir(dir, {