From: Christophe Rhodes Date: Sun, 23 Oct 2011 09:50:16 +0000 (+0100) Subject: fix swank-media repl-result-maker for complex X-Git-Url: http://christophe.rhodes.io/gitweb/?a=commitdiff_plain;h=040918c27d8b569b277e62a47efa860a65f5fcab;p=swankr.git fix swank-media repl-result-maker for complex There ought to be some way of catching this mistake, which is passing a non-length-1 vector to the swank functions, which then vectorise and confuse the event stream. --- diff --git a/swank-media.R b/swank-media.R index 1d7071d..59f7d77 100644 --- a/swank-media.R +++ b/swank-media.R @@ -30,7 +30,7 @@ makeMediaReplResult.numeric <- function(value) { list(quote(`:write-string`), string, quote(`:repl-result`)) } makeMediaReplResult.complex <- function(value) { - string <- deparse(value) + string <- paste(deparse(value), sep="", collapse="\n") list(quote(`:write-string`), string, quote(`:repl-result`)) }