[education/rkward] rkward: some
Stefan Rödiger
null at kde.org
Mon Jun 20 22:20:52 BST 2022
Git commit 7b75a89cd04a7b56ce6d52342b2bbc980e8907e7 by Stefan Rödiger.
Committed on 20/06/2022 at 21:19.
Pushed by srodiger into branch 'master'.
some
M +22 -6 rkward/RKWardroxygen2.xml
https://invent.kde.org/education/rkward/commit/7b75a89cd04a7b56ce6d52342b2bbc980e8907e7
diff --git a/rkward/RKWardroxygen2.xml b/rkward/RKWardroxygen2.xml
index c9d2345f..a83b213c 100644
--- a/rkward/RKWardroxygen2.xml
+++ b/rkward/RKWardroxygen2.xml
@@ -244,11 +244,27 @@ ${rangeCommand("cat(tabular(%%1))", "mtcars[1:5, 1:5]")}
</fillin>
</item>
<item>
- <match>create vignette</match>
- <fillin>devtools::use_vignette()</fillin>
- </item>
- <item>
- <match>Document your package</match>
- <fillin>devtools::document()</fillin>
+ <match>Line break</match>
+ <fillin>${rangeCommand("#' %%1 - Description text \\cr", "method")}</fillin>
+ </item>
+ <item>
+ <match>Template</match>
+ <fillin>#' myfun - Description of a dummy function
+#'
+#' Description
+#'
+#' @param x The input data
+#' @return A dummy function that does nothing with \code{x} to show basic roxygen2 principles.
+#' @seealso [base::return()] which this function wraps.
+#' @param method one of: \cr
+#' "method1" - very long text here \cr
+#' "method2" - very long text here \cr
+#' @examples
+#' myfun("Hello World")
+myfun <- function (x, method){
+ print(x)
+ return(NULL)
+}
+</fillin>
</item>
</snippets>
More information about the rkward-tracker
mailing list