String svgTemplate = svgString(pathRData, rCode) īufferedWriter buffWriter = new BufferedWriter(fileWriter) īuffWriter.write(svgTemplate, 0, svgTemplate.length()) īio7Dialog. IDocument doc = dp.getDocument(editor.getEditorInput()) IDocumentProvider dp = editor.getDocumentProvider() RServeUtil.evalR("save(file=\"" + pathRData + "\")", null) String path = Bio7Dialog.saveFile("*.svg") IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor() In addition it writes the current R workspace to the *svg file location (for images as vector or matrices) and adds the load statement as the first line: /* A simple Groovy script which writes the XML with the Object description (the R code from the current opened Bio7 R editor). Hello is my first Bio7 script attempt for your plugin.