From 21417cc77b6c04eb127db66c620f7b4e38164ace Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Fri, 13 Aug 2010 17:00:22 +0100 Subject: [PATCH] get definitions (use of <-) to work in the REPL the REPL now evaluates with envir=globalenv(), rather than in the environment of `swank:listener-eval`... --- swank.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swank.R b/swank.R index 71d502e..dc5cbd1 100644 --- a/swank.R +++ b/swank.R @@ -239,7 +239,7 @@ writeSexpToString <- function(obj) { } `swank:listener-eval` <- function(io, sldbState, string) { - val <- eval(parse(text=string)) + val <- eval(parse(text=string), envir = globalenv()) f <- fifo("") sink(f) print(val) -- 2.30.2