00001 ##' @file R-sample1.R
00002 ##' @brief This is a sample of a script
00003 ##'
00004 ##' Has mostly calls and instantiations.
00005 ##' Some results and scripting.
00006 ##' @note
00007 ##' This file has some comments to explain @brief and . (full stop). This is a
00008 ##' doxygen caveat.
00009 ##' @see pkg
00010
00011 ## Undocumented
00012 library(pkg)
00013
00014 ##' test function returns one (no full stop not brief)
00015 ##' @param car input variable
00016 ##' @return one
00017
00018 scripted1 <- function(car) {
00019 n=car
00020 }
00021
00022 ##' function no meta fields (full stop means brief).
00023 scripted2 <- function(car) {
00024 n=car
00025 }
00026
00027 ##' function no meta fields with blank line does not force this as brief
00028 ##'
00029 scripted3 <- function(car) {
00030 n=car
00031 }
00032
00033 scripted4 <- function(car) { # undocumented
00034 n=car
00035 }
00036
00037 if(!exists("Sys.setenv", mode = "function")) # pre R-2.5.0, use "old form"
00038 Sys.setenv <- Sys.putenv
00039
00040 ##' @var type var1
00041 ##' @brief A script static.
00042 var1 <- c(10, 20)
00043
00044 ##' Some script's twists.
00045 a=d
00046 subfunct(a)
00047 b=doxytest(g)
00048
00049