nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
160 stars 24 forks source link

removeExtraBrackets handles for loops without {} #1505

Closed kenkellner closed 3 weeks ago

kenkellner commented 3 weeks ago

Should fix #1503. I added the example from the issue to the tests along with some additional tests.

I checked the two failing tests in test-dynamicIndexing.R and they work for me now. I ran test-copy.R and everything seemed to work although I was a bit confused by the structure there, wasn't clear to me exactly where the test failure was.