[R] script works in Rgui, but failes in Rscript (coords, package 'pROC')

peter dalgaard pdalgd at gmail.com
Sun Apr 14 15:36:47 CEST 2013


On Apr 14, 2013, at 11:37 , christoph_s wrote:
> ...
> However, executing in the command line
> (C:\Progra~1\R\R-2.15.3\bin\Rscript.exe ROC_test.R) gives following errors:
> Error in ifelse(is(roc, "smooth.roc"), length(attr(roc, "roc")$cases),  :
>  could not find function "is"
> Calls: coords ... coords.roc -> lapply -> FUN -> coords.roc -> ifelse
> Execution halted
> 
> Any ideas? Thanks in advance,

is() is in "methods", so try require(methods).

-pd

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list