hi, am Samstag 27 August 2011 (12:54) schrieb Thomas Friedrichsmeier: > For the moment, however, I see the most convincing use-case for a single > function > rk.create.plugin.skeleton()
i've just uploaded a new XiMpLe package with some new rk.* functions:
the already mentioned
- rk.XML.dropdown()
- rk.XML.tabbook()
as well as
- rk.plugin.skeleton()
- calls: rk.XML.plugin()
- calls: rk.XML.pluginmap()
- calls: rk.XML.about()
<example>
about.info <- list(
about=list(
name="Square the circle",
desc="Squares the circle using Heisenberg compensation.",
version="0.1-3",
date=Sys.Date(),
url="http://eternalwondermaths.example.org/23/stc.html",
license="GPL",
category="Geometry"),
author=list(
c(name="E.A. Dölle", email="[email protected]",
url="http://eternalwondermaths.example.org"),
c(name="A. Assistant", email="[email protected]",
url="http://eternalwondermaths.example.org/staff/")),
dependencies=list(
rkward.min="0.5.3",
rkward.max="",
R.min="2.10",
R.max=""),
package=list(
c(name="heisenberg", min="0.11-2", max="",
repository="http://rforge.r-project.org"),
c(name="DreamsOfPi", min="0.2", max="", repository="")),
pluginmap=list(
c(name="heisenberg.pluginmap",
url="http://eternalwondermaths.example.org/hsb"))
)
rk.plugin.skeleton("Square the Circle", path="/tmp", about=about.info)
</example>
this should create the directory structure and files for a plugin below
'path'. if you want you can directly include content in the XML file, e.g.
<example>
test.dropdown <- rk.XML.dropdown("mydrop",
opts=list("First Option"=c(val="val1"),
"Second Option"=c(val="val2", chk=TRUE)))
test.tabbook <- rk.XML.tabbook("My Tabbook", tab.labels=c("First Tab",
"Second Tab"), children=list(test.dropdown, NULL))
rk.plugin.skeleton("Square the Circle", path="/tmp", about=about.info,
dialog=list(test.tabbook), overwrite=TRUE)
</example>
the *.js and *.rkh files are still empty dummies, DESCRIPTION can be improved,
and i did very little testing for side effects. still, i think it's not that
bad for a train ride ;-)
the created skeleton pluginmap can be added and checked in RKWard immediately,
and the whole structure can be used to build an R package. a package check
just warned about non-ASCII characters in the DESCRIPTION, which shure can be
dealt with somehow.
viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________ RKWard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rkward-devel
