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

detect invalid variable names in nfcode #1382

Closed paciorek closed 10 months ago

paciorek commented 11 months ago

Fixes #1335 , a longstanding issue that certain variable names conflict with C++ keywords but this is not error-trapped and C++ compilation fails.

paciorek commented 11 months ago

@perrydv would be good to have you give this a quick look before I merge.

perrydv commented 10 months ago

@paciorek I think this is ok. I can't think of a case where it would go haywire and do something unexpected. We could give it a nimbleOption toggle to be safe, but up to you.