[rkward-cvs] SF.net SVN: rkward:[4103] trunk/rkward/doc/rkwardplugins/index.docbook
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Dec 12 13:18:00 UTC 2011
Revision: 4103
http://rkward.svn.sourceforge.net/rkward/?rev=4103&view=rev
Author: tfry
Date: 2011-12-12 13:18:00 +0000 (Mon, 12 Dec 2011)
Log Message:
-----------
Minor fix to the markup.
Modified Paths:
--------------
trunk/rkward/doc/rkwardplugins/index.docbook
Modified: trunk/rkward/doc/rkwardplugins/index.docbook
===================================================================
--- trunk/rkward/doc/rkwardplugins/index.docbook 2011-12-11 22:15:51 UTC (rev 4102)
+++ trunk/rkward/doc/rkwardplugins/index.docbook 2011-12-12 13:18:00 UTC (rev 4103)
@@ -561,7 +561,7 @@
More often than not you will have to create one or more temporary &r; objects in the code generated by your plugin. Normally, you do not want those to be placed in the user's workspace, potentially even overwriting user variables. Hence, all plugin generated code is run in a <function>local()</function> environment (see &r; help page on function <function>local()</function>). This means, all variables you create are temporary and will not be saved permanently.
</para>
<para>
- If the user explicitly asks for a variable to be saved, you will need to assign to that object using <quote>.GlobalEnv$objectname <- value</quote>. In general, do not use the <quote><<-</quote> operator. It will not necessarily assign in .GlobalEnv.
+ If the user explicitly asks for a variable to be saved, you will need to assign to that object using <function>.GlobalEnv$objectname <- value</function>. In general, do not use the <function><<-</function> operator. It will not necessarily assign in .GlobalEnv.
</para>
<para>
One important pitfall is using <function>eval()</function>. Here, you need to note that eval will by default use the current environment for evaluation, i.e. the local one. This will work well most of the times, but but not always. Thus, if you need to use <function>eval()</function>, you will probably want to specify the <parameter>envir</parameter> parameter: <function>eval(..., envir=globalenv()</function>).
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list