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
Allow specification of function names instead of files similar to make_tests_shells_file #6
Comments
Hi Lorenz, |
Cool. How do you plan to approach it? I think you could use parse data to find the function declaration in a clean way. Using something along these lines. utils::getParseData(parse(path)) To find the the path to the function declaration, you could also use my package parsesum. However, I can't promise that it will be on CRAN soon. |
For now, I'm going to use the same methods as are used in |
Hi @lorenzwalthert, |
Hi @lorenzwalthert, |
Thanks @rorynolan. I guess I should but I can only do it next week at earliest. Is it merged into master already? |
Yes @lorenzwalthert, it's part of master. Take all the time you need. I'll probably push the current update to CRAN in a couple of weeks but even if you take longer than that it's fine, I'd appreciate your input and incorporate it for the following release. |
Hey @lorenzwalthert I'm gonna push this update to CRAN now and close the issue. I'm satisfied that it's working now, have been using it myself recently :) |
Thanks, and sorry I have not had time to test it. |
Looks like an interesting package. A function like
make_tests_shells_fun()
could be useful if one has several declarations of functions in an R script and want's to add tests for one at a time.The text was updated successfully, but these errors were encountered: