You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think all the "else" statements in bruSDM_predict.R should all be on the previous line. At least on my system/R version, I cannot have a line of code start with an else. For example, the theoretical code
if(FALSE) {"Yes"}
else {"No"}
returns Error: unexpected 'else' in " else". instead, it would have to be
if(FALSE) {
"Yes"
} else {
"No"
}
I get that error on Line 118, which should be } else {. similarly, line 126 should be
Update:
Turns out, when its only an issue (i.e., returns unexpected 'else' in " else" error) when executing the code in debugging/browser mode, but it's fine when run as a function, so feel free to delete this since it's a stylistic choice.
Line comment: 23d5067#r141274248
I think all the "else" statements in bruSDM_predict.R should all be on the previous line. At least on my system/R version, I cannot have a line of code start with an
else
. For example, the theoretical codereturns
Error: unexpected 'else' in " else"
. instead, it would have to beI get that error on Line 118, which should be
} else {
. similarly, line 126 should beThis seems to be an issue with every instance of
else
in this file.The text was updated successfully, but these errors were encountered: