Open ctkremer opened 5 years ago
ugh. I wish R had implemented a system of unique error identifiers (with a package-specific hash to disambiguate among packages) in the first place ... seems like a reasonable solution would be to add an explicit symb_derivs
argument ... (that, or try to figure out how to match the error message in every possible language ... e.g. see here ...) also, the Deriv
package is fuller-featured (allows adding to the derivative table on the fly), would be worth adding support for that ...
This is a minor issue, but was vexing to track down so I thought I'd post this for posterity. For some users (apparently with a non-English installation of R?) the deltavar function can fail on line 36 because the error message returned by D ends up being in, for example, French - so rather than recognizing "is not in the derivatives table" the function fails to recognize "n'est pas dans la table des dérivées", and thus to calculate numerical derivatives. For the time being, I simply removed the if() statement checking the error message from my local invocation of the deltavar function.