]> rhodes.io Git - swankr.git/commitdiff
Christophe Weblog Wiki Code Publications Music
experiment with different printing methods (using swank-media)
authorChristophe Rhodes <csr21@cantab.net>
Wed, 6 Apr 2011 07:48:33 +0000 (08:48 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Wed, 6 Apr 2011 07:48:33 +0000 (08:48 +0100)
swank-media.R

index 6e81dbbe82399b7704bcb43a6aaf86c1126d5152..686a6368b1a52647bf0801f4a2b6dd4c4c74963e 100644 (file)
@@ -16,4 +16,20 @@ makeMediaReplResult.trellis <- function(value) {
        deparse(value$call, nlines=1))
 }
 
+makeMediaReplResult.numeric <- function(value) {
+  string <- paste(deparse(value), sep="", collapse="\n")
+  list(quote(`:write-string`), string, quote(`:repl-result`))
+}
+makeMediaReplResult.complex <- function(value) {
+  string <- deparse(value)
+  list(quote(`:write-string`), string, quote(`:repl-result`))
+}
+
+makeMediaReplResult.array <- function(value) {
+  makeMediaReplResult.default(value)
+}
+makeMediaReplResult.matrix <- function(value) {
+  makeMediaReplResult.default(value)
+}
+
 makeReplResultFunction <- makeMediaReplResult