Usethis: use_addins()

Created on 21 May 2018  路  3Comments  路  Source: r-lib/usethis

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

Would

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

Example

use_addins("addin_function")

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

feature help wanted

All 3 comments

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.

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

Tagging @haozhu233 - TBD PR based on his awesome rstudio::conf 2019 talk: https://github.com/hebrewseniorlife/addin_demo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uribo picture uribo  路  5Comments

jennybc picture jennybc  路  6Comments

jennybc picture jennybc  路  4Comments

rpruim picture rpruim  路  5Comments

jennybc picture jennybc  路  8Comments