Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow 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.