[Roxygen-commits] r250 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Aug 5 19:15:36 CEST 2010


Author: pcd
Date: 2010-08-05 19:15:36 +0200 (Thu, 05 Aug 2010)
New Revision: 250

Modified:
   pkg/src/roxygen
Log:
sd2-option patch

Modified: pkg/src/roxygen
===================================================================
--- pkg/src/roxygen	2010-08-01 06:05:54 UTC (rev 249)
+++ pkg/src/roxygen	2010-08-05 17:15:36 UTC (rev 250)
@@ -19,13 +19,14 @@
 Options:
   -d  (Destructive) operate in place on SOURCE
   -u       (Unlink) clean TARGET first
+  -s  (Rd2) enable parsing of S4 tags
 
   -h         (Help) print short help message and exit
   -v      (Version) print roxygen version info and exit
 
 Report bugs to <roxygen-devel at lists.r-forge.r-project.org>."
 
-while getopts duhv OPT; do
+while getopts dushv OPT; do
     case $OPT in
         d|+d)
             destructive="TRUE"
@@ -33,6 +34,9 @@
         u|+u)
             unlink="TRUE"
             ;;
+        s|+s)
+            rd2="TRUE"
+            ;;
         h|+h)
             echo ${usage}
             exit 0
@@ -95,15 +99,18 @@
 
 : ${unlink:="FALSE"}
 : ${copy:="TRUE"}
+: ${rd2:="FALSE"}
 
 debug () {
-    echo source: "${source}"\; target: "${target}"\; copy: "${copy}"\; unlink: "${unlink}"
+    echo source: "${source}"\; target: "${target}"\; copy: "${copy}"\; unlink: "${unlink}"\; rd2: "${rd2}"
 }
 
+
 R_EXE="${R_HOME}/bin/R"
 echo "library(roxygen)
       roxygenize(package.dir=${source},
                  roxygen.dir=${target},
                  copy.package=${copy},
-                 unlink.target=${unlink})" | \
+                 unlink.target=${unlink},
+                 use.Rd2=${rd2})" | \
     "${R_EXE}" --no-restore --slave



More information about the Roxygen-commits mailing list