Skip to content
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

Open
wburke24 opened this issue May 17, 2018 · 4 comments
Open

package dependencies/loading #8

wburke24 opened this issue May 17, 2018 · 4 comments

Comments

@wburke24
Copy link
Member

wburke24 commented May 17, 2018

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?

@ryanrbart
Copy link
Member

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.

@wburke24
Copy link
Member Author

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?

@tungttnguyen
Copy link

@wburke24 : I thought the %>% is a part of the magrittr package? Keep in mind that using pipe can slow everything down
https://twitter.com/thanhtungmilan/status/1039953450228887552

@wburke24
Copy link
Member Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants