role-model / roleR

R package implementing the RoLE model
https://role-model.github.io/roleR
GNU General Public License v3.0
1 stars 2 forks source link

roleParams doesn't like NAs as arguments #47

Closed connor-french closed 1 year ago

connor-french commented 1 year ago

Renata found this issue when building the documentation. It looks like roleParams does an is() check that doesn't consider "NA" values, so it automatically fails.

Error in checkSlotAssignment(object, name, value) : assignment of an object of class “logical” is not valid for slot ‘neut_delta’ in an object of class “roleParams”; is(value, "numeric") is not TRUE

connor-french commented 1 year ago

fixed by @jidec in 4d4f825d65d96d69b4af80080f9309b3f9ef715e