-
Notifications
You must be signed in to change notification settings - Fork 15
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
standardizedVitalRates causes build error. #9
Comments
Also, standardizedVitalRates calls a function |
That function needs to be transferred, it's in Mage. |
I think the (original) problem is that |
It all needs to be tidied up and made consistent. I'm not sure the way functions have been divided up between Rage and Rcompadre is quite right, e.g. I think the sequence of functions that do the matrix collapsing (pre-condition for calculating standardised vital rates) are not all in the same place. |
In fact, having a sequence of functions that have to be called in a particular order to get a particular result is rather suspect. It's the way the original code was, but potentially it could be redesigned. It's good to have separate functions for doing specific tasks but maybe those should be internal functions that are called by a single outward-facing function that does everything required to produce the desired result. |
I agree, I think some of these functions could be internal. I'm working on making them consistent and getting them working together at the moment. We can decide which should be internal afterwards. |
@jonesor I've made some updates. Can you check if this builds now? |
Also, regarding your previous comment @jonesor, the |
There is a remaining error message - it is produced by the examples for
|
Ahh, need to add :: to import the functions from Rcompadre. Should be fixed now, I hope. |
Perhaps it would be a good practise to insulate the I've done this with #11 to test out the workflow. If it's too burdensome to add an additional layer at this point, let's keep the status quo and return to the question down the road. |
I agree with @wpetry on keeping separate branches. It'd be good to know that there is a single branch As for the second point (re: testing pull requests), adding something like Travis-CI and/or Appveyor to the project will automatically build all pull requests and pushes remotely (more on that here). Travis can build for Linux and MacOS (though r-devel on MacOS is notoriously buggy so I'd suggest omitting that) and Appveyor covers Windows Server. I'm not sure it's worth setting up until the package will build consistently without errors or warnings from R CMD check though. Once we think we're ready to add the continuous integration services, I'm happy to set them up. I already have templates from a different package that I maintain so it shouldn't take too long. |
I also think keeping separate branches is a good idea - especially since we will rely on this package for workshops/teaching. Could you go ahead and set this up @wpetry ? |
There is now a devel branch. I think all you need to do is open RStudio Git tab in the project, pull to syncrhonize everything, and then click the dropdown in the top-right corner of the tab (it should be currently marked |
Sorry, ^^that isn't much of a tutorial. See the slack thread for more details. If others find that insufficient to get started, I'll put together a more comprehensive overview |
Please could you check the example can be run without error.
Currently produces -> Error: Expecting matrices with equal dimensions
The text was updated successfully, but these errors were encountered: