Strange problem in example check of package
1
0
Entering edit mode
Kyle Johnsen ▴ 30
@kyle-johnsen-11443
Last seen 5.8 years ago
United States/Brigham Young University

I'm not sure what's going on. The examples in my documentation seem to run okay, then I get a weird error at the end apparently outside of my code. I thought something about the example itself could have been messing things up, but as you can see, the error persists even with a commented-out example. I have previously tried commenting out the only part of my examples that ever use graphics, and that didn't fix the problem either. Does anyone have any idea what the problem could be?

Here's the Travis log with the problem: https://travis-ci.org/kjohnsen/MMAPPR2/builds/437132158

Running examples in ‘MMAPPR2-Ex.R’ failed
The error most likely occurred in:
> ### Name: prePeak
> ### Title: Identify chromosomes containing peaks
> ### Aliases: prePeak
> 
> ### ** Examples
> 
> # postPrePeakMD <- prePeak(postLoessMD)
> 
> 
> 
> ### * <FOOTER>
> ###
> cleanEx()
> options(digits = 7L)
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed:  422.32 24.256 474.836 0.008 0.128 
> grDevices::dev.off()
Error in grDevices::dev.off() : 
  cannot shut down device 1 (the null device)
package development r package problem build/check error mmappr2 • 1.1k views
ADD COMMENT
1
Entering edit mode
Kyle Johnsen ▴ 30
@kyle-johnsen-11443
Last seen 5.8 years ago
United States/Brigham Young University

After some investigation, I discovered that my examples that interacted with graphics did cause the problem. I edited those parts out of the examples (I missed one place when I tried this the first time) and it worked. I guess this is a problem with R itself--my function calls graphics.off() to clean up after itself after writing PDFs and such, and I suppose R, ignorant of the fact, thought it still needed to call dev.off().

ADD COMMENT

Login before adding your answer.

Traffic: 900 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6