-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package dependencies/loading #8
Comments
A couple of things here. First, we should always include the :: when using functions from other packages. I've started doing this but have gone back through the RHESSysIOinR code. It will make it so the user doesn't have to attach the package, though they will still need to have it downloaded. We can remove the packages that are not used (and possibly even some that are rarely used). I wasn't being selective when requiring them. We need to investigate how to get package dependencies downloaded. When one downloads from CRAN, the dependencies are automatically downloaded also. This doesn't happen with the current way I am loading RHESSysIOinR (opening Rproj and pressing build). There might be a way around this though, just not sure yet. |
yeah on my version I've been going through and adding the package and ::. one issue is the pipes (%>%) which is kinda a pain, so maybe people can just load tidyr? |
@wburke24 : I thought the |
@tungmilan Yes it is, though it's included in tidyr too. And ithat's a good point, and eventually it would be nice to rewrite those bits, but for now we just have to deal with them. |
currently there are many other packages used in rhessysIOinR, they're included in the imports in the description, but that doesn't attach the packages for use, currently you have to attach all the packages along with RHESSysIOinR but I think we should be able to get around this. It looks like right now it explicitly refers to the functions via :: so i'm not sure why you need to load the other packages, maybe just missing :: for some functions?
The text was updated successfully, but these errors were encountered: