-
Notifications
You must be signed in to change notification settings - Fork 755
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
Add dev_example() to documentation for run_examples() #2545
Comments
Looks like this exists as |
I was having a similar issue and I have found out |
@pawelru I think the better alternative for me is Since this function already exists, I think the need is just to reference this function in the |
Is your feature request related to a problem? Please describe.
When developing my package examples, I often want to test only one file's examples. Using
run_examples(start="my_file")
is insufficient, since I have little control over what comes after so I have to scroll up to see what I actually want.It looks like this was implemented at some point (#108), but I can't find it anymore (at least in version 2.4.5).If there is a way to do this withrun_examples()
, I recommend highlighting that in the help documentation.Describe the solution you'd like
A function like
run_example()
which runs one file's example.Update 01/21/2024
Such a function exists! It's just in the
pkgload
package, which is not where I would have expected to look for it, since a)run_examples()
is indevtools
and b)run_example()
doesn't have to do with "simulating the process of installing and loading a package" in my mind.Given that the function(s) already exist, but are perhaps not easy to find, this request is to do one or both of the following:
dev_example()
/run_example()
in the docs fordevtools::run_examples()
dev_example()
/run_example()
todevtools
.The text was updated successfully, but these errors were encountered: