Re: [Rd] enhancement to R CMD check: do imported objects from multiple packages mask each other?

2016-10-27 Thread Duncan Murdoch
On 27/10/2016 11:58 AM, Hervé Pagès wrote: Hi Duncan, On 10/27/2016 05:17 AM, Duncan Murdoch wrote: [...] > Could you please post it to the bug list as an enhancement request? > Those should be persistent. > > If you have never posted to the bug list you will need to be manually > added to the l

Re: [Rd] BUG?: On Linux setTimeLimit() fails to propagate timeout error when it occurs (works on Windows)

2016-10-27 Thread luke-tierney
On unix, unless event polling is enabled Sys.sleep just waits in a select() call (with a SIGINT handler in place) so the elapsed time isn't checked until after the select call is complete. Rstudio uses event polling, and in particular sets R_wait_usec to 1, which means event and interrupt chec

Re: [Rd] enhancement to R CMD check: do imported objects from multiple packages mask each other?

2016-10-27 Thread Hervé Pagès
Hi Duncan, On 10/27/2016 05:17 AM, Duncan Murdoch wrote: [...] Could you please post it to the bug list as an enhancement request? Those should be persistent. If you have never posted to the bug list you will need to be manually added to the list of people allowed to post. In that case, write

Re: [Rd] enhancement to R CMD check: do imported objects from multiple packages mask each other?

2016-10-27 Thread Duncan Murdoch
On 27/10/2016 5:26 AM, Steffen Wagner wrote: Dear R-Developement Team, I want to suggest an additiol check to the R CMD check functionality. Consider the situation where the objects of more than one package are imported to the NAMESPACE of a third package, e.g. via import(foo, bar) in th

[Rd] enhancement to R CMD check: do imported objects from multiple packages mask each other?

2016-10-27 Thread Steffen Wagner
Dear R-Developement Team, I want to suggest an additiol check to the R CMD check functionality. Consider the situation where the objects of more than one package are imported to the NAMESPACE of a third package, e.g. via import(foo, bar) in the NAMESPACE file. There might be situations whe

Re: [Rd] using with inside loop breaks next

2016-10-27 Thread Peter Dalgaard
(a)/(c) mostly, I think. The crux is that "next" is unhappy about being evaluated in a different environment than the containing loop. Witness this: > for (i in 1:10) {if (i == 5) evalq(next); print(i)} [1] 1 [1] 2 [1] 3 [1] 4 [1] 6 [1] 7 [1] 8 [1] 9 [1] 10 > for (i in 1:10) {if (i == 5) evalq(n

Re: [Rd] improve 'package not installed' load errors?

2016-10-27 Thread Richard Cotton
> A side question, which I do not know the answer to, is how users get > themselves into this state. I've fallen over this a few times. It happens when you have multiple R sessions running, and R tries to update Rcpp while it is loaded in the other session. For example, I'm working on one proje

[Rd] using with inside loop breaks next

2016-10-27 Thread Richard Cotton
If I want to use with inside a loop, it seems that next gets confused. To reproduce: for(lst in list(list(a = 1), list(a = 2), list(a = 3))) { with(lst, if(a == 2) next else print(a)) } I expect 1 and 3 to be printed, but I see [1] 1 Error in eval(expr, envir, enclos) : no loop for break/ne