R/fixobject.R

Defines functions fixobject

fixobject <- function(myObject){
	if("recordedplot" %in% class(myObject)){
		library(grid);
		for(i in 1:length(myObject[[1]])) {
			if( "NativeSymbolInfo" %in% class(myObject[[1]][[i]][[2]][[1]]) ){
				myObject[[1]][[i]][[2]][[1]] <- getNativeSymbolInfo(myObject[[1]][[i]][[2]][[1]]$name);
			}
		}
	}
	return(myObject);
}
jeroenooms/opencpu-legacy documentation built on May 19, 2019, 6:15 a.m.