inst/tests/non_test/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 Oct. 13, 2023, 5:06 p.m.