Closed djhocking closed 9 years ago
I tracked down the bug. You're missing an ending "}" for calcYearsMaxTemp()
. I think the return statement might be within the wrong {} block also. I tried sourcing the functions one by one, and that one didn't have a ending bracket.
Thanks. I guess I messed that up when I merged the two versions of the function. I didn't realize I had merged them after the last test. That's the problem with bouncing between 3 computers in a sleep-deprived state. I fixed it, rebuilt, and pushed. It should work now (fingers crossed).
I don't think the error is at the
return() }
stage. That looks okay. I think it has to do withError in parse(text = lines, n = -1, srcfile = srcfile) :
. I am not sure what that refers to but I think it might be thefetch
from the database using theRPostgreSQL
package. It could be a problem building a package that calls to the database. I have no idea. The code seems to work fine when I load the functions locally.