Reputation: 11
I repeatedly receive this Error.
Error in http://dev.off() : cannot shut down device 1 (the null device)
What is the problem?
Upvotes: 1
Views: 1792
Reputation: 342
I recommend using the following statement:if(dev.cur() > 1) dev.off()
Upvotes: 1
Reputation: 142
You should have a previous plot, otherwise you will receive an error
plot(1)
dev.off()
null device
1
#Once the graphics device is shutted down...
dev.off()
Error in dev.off() : cannot shut down device 1 (the null device)
Upvotes: 0