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
You probably have more insight into this but what's the best way to use variables from other files? Do you just source that file or call it from the package namespace, so recodeflow:::variable_details_columns?
R Packages states that environments can be used to manage data that multiple functions need access to. However, the emphasis seems to be on the fact that, with an environment, values can be modified after the package has been loaded. I don't think this scenario applies to us since the value that the variable is assigned to doesn't change.
Another solution (shown in the first code block of Section 7.4 of the previous link) would be to define an internal function that returns a variable.
That being said, I wonder if the most simple solution is to delete R/strings.R and replace each variable with the corresponding string. I'm leaning towards this approach since the majority of variables are holding onto one or two-word strings. And in some cases, it would be shorter to write out the string than the variable name.
You probably have more insight into this but what's the best way to use variables from other files? Do you just source that file or call it from the package namespace, so
recodeflow:::variable_details_columns
?Originally posted by @yulric in #24 (comment)
The text was updated successfully, but these errors were encountered: