From: Uwe L. <li...@st...> - 2007-05-14 08:16:08
|
Gregor Gorjanc wrote: > Hi! > >>>>>> Uwe Ligges writes: >> This version will work for S-PLUS as well, thanks to Dawn Woodard and >> Insightful for porting it. > >> Not that easy to convince codetools if some parts of the sources are >> made for S-PLUS only ... (Dawn, you might want to look at my changes). >> The last (unremovable) Warnings from codetools are due to the fact that >> the calling functions are only used in S-PLUS and the objects codetools >> is warning about do exist in S-PLUS but not in R. >> The only alternative that springs to mind would be to create some fake >> functions such as > >> if(is.R()){ >> foo <- function(......) >> stop("This function will never be called in R") >> } else { >> foo <- function(......) >> real Definition >> } > > You mean that package R2WinBUGS would hold definitions for S-PLUS > specific functions? It already does hold S-PLUS specific functions, thanks to Dawn. But this leads to warnings in the R checks on CRAN, because codetools does not know that code in if(!is.R()){HERE} should not be inspected. The above idea is some dirty trick to calm codetools down ... Uwe > Gregor > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Bugs-r-devel mailing list > Bug...@li... > https://lists.sourceforge.net/lists/listinfo/bugs-r-devel |