R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 (2005-06-20), ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for a HTML browser interface to help. Type 'q()' to quit R. > ### *
> ### > attach(NULL, name = "CheckExEnv") > assign(".CheckExEnv", as.environment(2), pos = length(search())) # base > ## add some hooks to label plot pages for base and grid graphics > setHook("plot.new", ".newplot.hook") > setHook("persp", ".newplot.hook") > setHook("grid.newpage", ".gridplot.hook") > > assign("cleanEx", + function(env = .GlobalEnv) { + rm(list = ls(envir = env, all.names = TRUE), envir = env) + RNGkind("default", "default") + set.seed(1) + options(warn = 1) + delayedAssign("T", stop("T used instead of TRUE"), + assign.env = .CheckExEnv) + delayedAssign("F", stop("F used instead of FALSE"), + assign.env = .CheckExEnv) + sch <- search() + newitems <- sch[! sch %in% .oldSearch] + for(item in rev(newitems)) + eval(substitute(detach(item), list(item=item))) + missitems <- .oldSearch[! .oldSearch %in% sch] + if(length(missitems)) + warning("items ", paste(missitems, collapse=", "), + " have been removed from the search path") + }, + env = .CheckExEnv) > assign("..nameEx", "__{must remake R-ex/*.R}__", env = .CheckExEnv) # for now > assign("ptime", proc.time(), env = .CheckExEnv) > grDevices::postscript("drfit-Examples.ps") > assign("par.postscript", graphics::par(no.readonly = TRUE), env = .CheckExEnv) > options(contrasts = c(unordered = "contr.treatment", ordered = "contr.poly")) > options(warn = 1) > library('drfit') Loading required package: RODBC > > assign(".oldSearch", search(), env = .CheckExEnv) > assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) > cleanEx(); ..nameEx <- "checkplate" > > ### * checkplate > > flush(stderr()); flush(stdout()) > > ### Name: checkplate > ### Title: Check raw data from a specified microtiter plate > ### Aliases: checkplate > ### Keywords: database > > ### ** Examples > > # Check plate number 1 in the cytotox database > ## Not run: data <- checkplate(1) > > > > cleanEx(); ..nameEx <- "checksubstance" > > ### * checksubstance > > flush(stderr()); flush(stdout()) > > ### Name: checksubstance > ### Title: Check raw data for a specified substance > ### Aliases: checksubstance > ### Keywords: database > > ### ** Examples > > # Check substance IM14 BF4 in the cytotox database > ## Not run: checksubstance("IM14 BF4") > > > > cleanEx(); ..nameEx <- "drdata" > > ### * drdata > > flush(stderr()); flush(stdout()) > > ### Name: drdata > ### Title: Get dose-response data > ### Aliases: drdata > ### Keywords: IO database > > ### ** Examples > > # Get cytotoxicity data for Tributyltin and zinc pyrithione, tested with IPC-81 cells > ## Not run: data <- drdata(c("TBT","ZnPT2")) > > > > cleanEx(); ..nameEx <- "drfit" > > ### * drfit > > flush(stderr()); flush(stdout()) > > ### Name: drfit > ### Title: Fit dose-response models > ### Aliases: drfit > ### Keywords: models regression nonlinear > > ### ** Examples > > data(antifoul) > r <- drfit(antifoul) TBT: Fitting data... Zn Pyrithion: Fitting data... > format(r,digits=2) Substance n lld lhd mtype logEC50 std unit sigma slope 1 TBT 15 -2.7 2.4 lognorm -0.16 0.053 \265M 0.19 0.68 2 Zn Pyrithion 9 -2.1 2.0 lognorm -0.40 0.054 \265M 0.23 0.42 > > > > cleanEx(); ..nameEx <- "drplot" > > ### * drplot > > flush(stderr()); flush(stdout()) > > ### Name: drplot > ### Title: Plot dose-response models > ### Aliases: drplot > ### Keywords: models regression nonlinear > > ### ** Examples > > data(antifoul) > r <- drfit(antifoul) TBT: Fitting data... Zn Pyrithion: Fitting data... > ## Not run: drplot(r,antifoul) > > > > ### *