/usr/share/gedit/plugins/RCtrl/Wizards/load_package.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 | <!-- Define a rwizard -->
<rwizard name="loadpackage" description="Load package"
menu="/Package management" icon="load_package.png">
<about
name="Load package"
version="0.1"
copyright="(c) 2010 Dan Dediu"
comments="Load an already installed package"
license="GLPv3"
website="http://rgedit.sourceforge.net/"
authors="Dan Dediu <ddediu@hotmail.com>"
documenters=""
artists=""
translator_credits=""
logo_icon_name="load_package.png"/>
<help rhelp="?library"/>
<vars/>
<!-- The actual R code template: only strange thing is the placeholders call using ${PLACEHOLDER_NAME} -->
<!-- ATTENTION! in the R code template you must use XML substitution codes (e.g., "<" must be given as "<")! -->
<template>
local({pkg <- sort(.packages(all.available = TRUE))[menu(sort(.packages(all.available = TRUE)),graphics=T)]
if(nchar(pkg)) library(pkg, character.only=TRUE)})
</template>
</rwizard>
|