[rkward-cvs] SF.net SVN: rkward: [1415] trunk/rkward/rkward/plugins

kapatp at users.sourceforge.net kapatp at users.sourceforge.net
Tue Feb 20 05:15:00 UTC 2007


Revision: 1415
          http://svn.sourceforge.net/rkward/?rev=1415&view=rev
Author:   kapatp
Date:     2007-02-19 21:15:00 -0800 (Mon, 19 Feb 2007)

Log Message:
-----------
Set Working Directory plugin under Workspace menu.

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/under_development.pluginmap
    trunk/rkward/rkward/plugins/x11device/export.rkh

Added Paths:
-----------
    trunk/rkward/rkward/plugins/00saveload/setworkdir.php
    trunk/rkward/rkward/plugins/00saveload/setworkdir.rkh
    trunk/rkward/rkward/plugins/00saveload/setworkdir.xml

Added: trunk/rkward/rkward/plugins/00saveload/setworkdir.php
===================================================================
--- trunk/rkward/rkward/plugins/00saveload/setworkdir.php	                        (rev 0)
+++ trunk/rkward/rkward/plugins/00saveload/setworkdir.php	2007-02-20 05:15:00 UTC (rev 1415)
@@ -0,0 +1,20 @@
+<?php
+function preprocess () {
+}
+function calculate () {
+  $dir = getRK_val ("dir");
+  if (is_dir($dir)) {
+?>
+setwd("<? echo ($dir); ?>")
+<?
+  } else {
+?>
+cat("Not a directory.")
+<?
+  }
+}
+function printout () {
+}
+function cleanup () {
+}
+?>
\ No newline at end of file

Added: trunk/rkward/rkward/plugins/00saveload/setworkdir.rkh
===================================================================
--- trunk/rkward/rkward/plugins/00saveload/setworkdir.rkh	                        (rev 0)
+++ trunk/rkward/rkward/plugins/00saveload/setworkdir.rkh	2007-02-20 05:15:00 UTC (rev 1415)
@@ -0,0 +1,15 @@
+<!DOCTYPE rkhelp>
+<document>
+	<summary>
+		Set or change the current working directory.
+	</summary>
+	<usage>
+    Choose a diretory to set/change the working directory for R. The R function <b>setwd</b> is used to do the job.
+	</usage>
+	<related>
+		<ul>
+			<li><link href="rkward://rhelp/getwd"/></li>
+			<li><link href="rkward://rhelp/setwd"/></li>
+		</ul>
+	</related>
+</document>

Added: trunk/rkward/rkward/plugins/00saveload/setworkdir.xml
===================================================================
--- trunk/rkward/rkward/plugins/00saveload/setworkdir.xml	                        (rev 0)
+++ trunk/rkward/rkward/plugins/00saveload/setworkdir.xml	2007-02-20 05:15:00 UTC (rev 1415)
@@ -0,0 +1,8 @@
+<!DOCTYPE rkplugin>
+<document>
+  <code file="setworkdir.php" />
+  <help file="setworkdir.rkh" />
+  <dialog label="Set the working directory">
+    <browser size="small" id="dir" type="dir" label="Choose the Working Directory"/>
+  </dialog>
+</document>

Modified: trunk/rkward/rkward/plugins/under_development.pluginmap
===================================================================
--- trunk/rkward/rkward/plugins/under_development.pluginmap	2007-02-19 13:15:35 UTC (rev 1414)
+++ trunk/rkward/rkward/plugins/under_development.pluginmap	2007-02-20 05:15:00 UTC (rev 1415)
@@ -2,6 +2,7 @@
 
 <document base_prefix="" namespace="rkward">
 	<components>
+		<component type="standard" id="setworkdir" file="00saveload/setworkdir.xml" label="Set Working Directory" />
 
 	</components>
 
@@ -16,6 +17,9 @@
 		</menu>
 		<menu id="plots" label="Plots" index="5">
 		</menu>
+		<menu id="workspace" label="Workspace" index="5">
+			<entry component="setworkdir" />
+		</menu>
 
 		<menu id="distributions" label="Distributions" index="7">
 		</menu>

Modified: trunk/rkward/rkward/plugins/x11device/export.rkh
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export.rkh	2007-02-19 13:15:35 UTC (rev 1414)
+++ trunk/rkward/rkward/plugins/x11device/export.rkh	2007-02-20 05:15:00 UTC (rev 1415)
@@ -1,7 +1,7 @@
 <!DOCTYPE rkhelp>
 <document>
 	<summary>
-		Export the current contents of a graphics device to a graphics file
+		Export the current contents of a graphics device to a graphics file.
 	</summary>
 	<usage>
 		Chose a filename and filetype to save to. Additional options for size and resolution are available. Exporting is done using ghostscript. You need to have ghostscript installed for this to work.
@@ -10,7 +10,7 @@
 	</usage>
 	<settings>
 		<caption id="file_and_type"/>
-		<setting id="file">The filename to save to</setting>
+		<setting id="file">The filename to save to.</setting>
 		<setting id="format">File format to use. Only the most common ones are listed, but many more are supported by ghostscript. Select "Other" and see the option below to use these formats.</setting>
 		<setting id="specifiedformat">Select "Other" in the option above to use this setting. Specify the device identifier as used by ghostscript. Running "ghostscript --help" in a terminal should give a list of available devices.</setting>
 		<caption id="size_resolution"/>
@@ -26,4 +26,4 @@
 		</ul>
 	</related>
 </document>
- 
+


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