diff MsDbOutputStream.R @ 6:b8f70d8216b3 draft

planemo upload for repository https://github.com/workflow4metabolomics/lcmsmatching.git commit b3a4e34cf9356447ae3507cc6fe2ff6a1f24afbc-dirty
author prog
date Mon, 27 Mar 2017 06:27:29 -0400
parents 3afe41d3e9e7
children
line wrap: on
line diff
--- a/MsDbOutputStream.R	Thu Mar 16 08:15:11 2017 -0400
+++ b/MsDbOutputStream.R	Mon Mar 27 06:27:29 2017 -0400
@@ -7,7 +7,7 @@
 	# CLASS DECLARATION #
 	#####################
 	
-	MsDbOutputStream <- setRefClass("MsDbOutputStream", fields = list(.keep.unused = "logical", .one.line = "logical", .match.sep = "character", .output.fields = "ANY", .multval.field.sep = "character", .first.val = "logical", .ascii = "logical", .noapostrophe = "logical", .noplusminus = "logical", .nogreek = "logical"))
+	MsDbOutputStream <- setRefClass("MsDbOutputStream", fields = list(.keep.unused = "logical", .one.line = "logical", .match.sep = "character", .multval.field.sep = "character", .first.val = "logical", .ascii = "logical", .noapostrophe = "logical", .noplusminus = "logical", .nogreek = "logical", .rtunit = 'character'))
 	
 	###############
 	# CONSTRUCTOR #
@@ -20,20 +20,20 @@
 	#' @return
 	#' @examples
 	#' stream <- MsDbOutputDataFrameStream$new(one.line = TRUE)
-	MsDbOutputStream$methods( initialize = function(keep.unused = FALSE, one.line = FALSE, match.sep = MSDB.DFT.MATCH.SEP, output.fields = msdb.get.dft.output.fields(), multval.field.sep = MSDB.DFT.OUTPUT.MULTIVAL.FIELD.SEP, first.val = FALSE, ascii = FALSE, noapostrophe = FALSE, noplusminus = FALSE, nogreek = FALSE, ...) {
+	MsDbOutputStream$methods( initialize = function(keep.unused = FALSE, one.line = FALSE, match.sep = MSDB.DFT.MATCH.SEP, multval.field.sep = MSDB.DFT.OUTPUT.MULTIVAL.FIELD.SEP, first.val = FALSE, ascii = FALSE, noapostrophe = FALSE, noplusminus = FALSE, nogreek = FALSE, rtunit = MSDB.RTUNIT.SEC, ...) {
+
+		callSuper(...)
 		
 		.keep.unused <<- keep.unused
 		.one.line <<- one.line
 		.match.sep <<- match.sep
-		.output.fields <<- output.fields
 		.multval.field.sep <<- multval.field.sep
 		.first.val <<- first.val
 		.ascii <<- ascii
 		.noapostrophe <<- noapostrophe
 		.noplusminus <<- noplusminus
 		.nogreek <<- nogreek
-
-		callSuper(...)
+		.rtunit <<- rtunit
 	})
 	
 	#################