neylsoncrepalde / multinets

Multilevel Network Analysis
GNU General Public License v3.0
19 stars 2 forks source link

Fix condition>1 problem #1

Closed neylsoncrepalde closed 6 years ago

neylsoncrepalde commented 6 years ago

R currently only emits a warning when if/while statement is used with a condition of length greater than one. However, such cases are almost always programming errors, and hence this warning will soon be turned into a runtime error. This can already be done in current R-devel by setting environment variable _R_CHECK_LENGTH_1CONDITION=true to make it easier to spot these cases. And this is already done in certain CRAN checks.

A condition of length greater than one has been detected while running tests of your package (and the if/while statement involved was in the code of your package, so it is unlikely that this would have been caused by a dependent package). Detailed reports can be found at

https://github.com/kalibera/rifcond

I've modified R slightly to give more detailed debugging information in case of this error, so hopefully the outputs will be useful in finding the cause of the problem. In either case, one can reproduce the problem in normal R-devel via _R_CHECK_LENGTH_1CONDITION=true or in a released version of R by looking at warnings.

Please check out the reports and fix this in your package(s) as soon as possible. In the unlikely case this is caused by a dependent package, please report to the maintainer of that package.

Thank you, Tomas Kalibera

neylsoncrepalde commented 6 years ago

Fixed.