inst/tests/package.manual.help.R

#
# vim:set ff=unix expandtab ts=2 sw=2:
test.op=function(){
    library(SoilR)
    str <- as.character(?SoilR)
    #print(str)
    # note that is not the help text but (in case there is help)
    # the path to the file.
    # If the help file is missing then str will not contain the word "SoilR"
    # grep will not report 1 as the position in the character vector 
    # str but integer(0)  the test will fail
    checkEquals(grep("SoilR",str),1)
 }

Try the SoilR package in your browser

Any scripts or data that you put into this service are public.

SoilR documentation built on May 29, 2017, 10:57 a.m.