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

use_addins() #353

EmilHvitfeldt opened this issue May 21, 2018 · 3 comments

use_addins() #353

EmilHvitfeldt opened this issue May 21, 2018 · 3 comments


Copy link

@EmilHvitfeldt EmilHvitfeldt commented May 21, 2018

Function to help setup the necessary steps for addins in a package.


  • Create a file at inst/rstudio/addins.dcf (if not already present)
  • Add the 4 lines to file and populates the binding.



(following lines added in "inst/rstudio/addins.dcf")
Name: --- please supply name ---
Description: --- please supply description ---
Binding: addin_function
Interactive: false

Copy link

@moodymudskipper moodymudskipper commented Oct 21, 2018

I came to ask for almost exactly that, except that I'd suggest :

use_addin <- function(binding, name = binding, description ="", interactive = FALSE)`

And overwrite an addin specification that would have the same name or the same binding function.

Copy link

@hadley hadley commented Nov 30, 2018

We'd love to see a PR for this. I think it should be fairly simple, following a template from an existing function.

Copy link

@apreshill apreshill commented Jan 19, 2019

Tagging @haozhu233 - TBD PR based on his awesome rstudio::conf 2019 talk:

haozhu233 added a commit to haozhu233/usethis that referenced this issue Jan 21, 2019
@hadley hadley closed this in fbb03d1 Feb 4, 2019
jennybc added a commit that referenced this issue Mar 6, 2019
* Added use_addin as requested in #353

* remove return inside invisible

* Improved tests for use_addin; Added item to NEWS

* Following Hadley's comment, put in addin variable through render_template

* make the newline part a little more dynamic

* Tweak news bullet

* Move proj_path up as Jenny suggested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants