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
In the new R version get() signals an error if the first argument has length greater than 1.
Error in get(grep(stks.data[[nmstk]], pattern = "_params.n", value = TRUE)) : first argument has length > 1 > grep(stks.data[[nmstk]], pattern = "_params.n", value = TRUE) [1] "stk1_params.n" "stk1_params.name"
A possible solution would be to add a $ at the end of the pattern to grep: > grep(stks.data[[nmstk]], pattern = "_params.n$", value = TRUE) [1] "stk1_params.n"
The same error possible holds for other create.XX functions, I haven't checked yet
Thank you,
Danai
The text was updated successfully, but these errors were encountered:
Hi,
In the new R version get() signals an error if the first argument has length greater than 1.
Error in get(grep(stks.data[[nmstk]], pattern = "_params.n", value = TRUE)) : first argument has length > 1
> grep(stks.data[[nmstk]], pattern = "_params.n", value = TRUE)
[1] "stk1_params.n" "stk1_params.name"
A possible solution would be to add a
$
at the end of the pattern to grep:> grep(stks.data[[nmstk]], pattern = "_params.n$", value = TRUE)
[1] "stk1_params.n"
The same error possible holds for other create.XX functions, I haven't checked yet
Thank you,
Danai
The text was updated successfully, but these errors were encountered: