/usr/share/gedit/plugins/RCtrl/Wizards/write_RData.xml is in gedit-r-plugin 0.7.1.1-Gtk3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | <!-- Define a rwizard -->
<rwizard name="writerdata" description="Write R data to file"
menu="/Data import and export" icon="write_RData.png">
<about
name="Write R data to file"
version="0.1"
copyright="(c) 2010 Dan Dediu"
comments="Save an R object using save(...)"
license="GLPv3"
website="http://rgedit.sourceforge.net/"
authors="Dan Dediu <ddediu@hotmail.com>"
documenters=""
artists=""
translator_credits=""
logo_icon_name="write_RData.png"/>
<help rhelp="?save"/>
<vars>
<block title="save() parameters...">
<variable name="save.workspace" description="Save the whole workspace?" type="bool" default="Dalse" required="False" tooltip="If this is checked then <b>objects</b> and <b>envir</b> are ignored"/>
<variable name="file" description="The data file's path" type="text" default="" required="True" tooltip='Use quotes if filename is a simple <b>string</b> (e.g. "file.spss") but not if it is an <b>expression</b> (e.g. paste( "file", "spss", sep="" )).'/>
<variable name="objects" description="The names of the objects to be saved (as symbols or character strings)" type="text" default="" required="False" tooltip="If more than one object, please use commas (,) to separate them but <b>do not</b> end with a comma (e.g., x, y, z)!"/>
<variable name="envir" description="The environment where the data should be loaded" type="text" default="parent.frame()" required="True" tooltip="The default is usually ok"/>
</block>
</vars>
<!-- The actual R code template: only strange thing is the placeholders call using ${PLACEHOLDER_NAME} -->
<template>
$[Python ('save.image(file=${file})','save( ${objects}, file=${file}, envir=${envir} )')[not (str("${save.workspace}").upper() == "TRUE")] $]
</template>
</rwizard>
|