Dear R-helpers, making a package (windowsXP), that includes a bunch of functions, but none have examples (all example code is within \dontrun{} blocks). I do R CMD check Maeswrap, all bits get OK-ed, except: "Running examples in 'Maeswrap-Ex.R' failed." When I run the 'Maeswrap-Ex.R' file myself, there are no problems. Any pointers? thanks Remko ------------------------------------------------- Remko Duursma Post-Doctoral Fellow Centre for Plant and Food Science University of Western Sydney Hawkesbury Campus Richmond NSW 2753 Dept of Biological Science Macquarie University North Ryde NSW 2109 Australia Mobile: +61 (0)422 096908
Remko Duursma wrote:> Dear R-helpers, > > making a package (windowsXP), that includes a bunch of functions, but > none have examples (all example code is within \dontrun{} blocks). > > I do R CMD check Maeswrap, all bits get OK-ed, except: > > "Running examples in 'Maeswrap-Ex.R' failed."What does the Maeswrap-Ex.Rout file tell us? Uwe Ligges> When I run the 'Maeswrap-Ex.R' file myself, there are no problems. > > Any pointers? > > > thanks > Remko > > > ------------------------------------------------- > Remko Duursma > Post-Doctoral Fellow > > Centre for Plant and Food Science > University of Western Sydney > Hawkesbury Campus > Richmond NSW 2753 > > Dept of Biological Science > Macquarie University > North Ryde NSW 2109 > Australia > > Mobile: +61 (0)422 096908 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Remko Duursma wrote:> Dear R-helpers, > > making a package (windowsXP), that includes a bunch of functions, but > none have examples (all example code is within \dontrun{} blocks). > > I do R CMD check Maeswrap, all bits get OK-ed, except: > > "Running examples in 'Maeswrap-Ex.R' failed." > > When I run the 'Maeswrap-Ex.R' file myself, there are no problems. > > Any pointers? >Hi Remko, There are a number of ways in which the example code can run in the current R interpreter but fail in the checking of a package. Quite often it is that a package has been loaded in the current R interpreter and that package is not explicitly loaded in the example section. Even when it is loaded explicitly, there can be problems making sure that the example won't run if the package is unavailable. I devised an example for the vector.field function that used the maps package and I was never able to work out how to get it to check properly. Jim