Skip to content

improve shiny function inference - #382

Merged
jjallaire merged 2 commits into
masterfrom
feature/better-shiny-inference
Apr 10, 2015
Merged

jjallaire merged 2 commits into
masterfrom
feature/better-shiny-inference

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

This PR improves how we detect whether a particular function is a Shiny 'input' or 'output' function in a couple ways.

  1. We assume that a function is a shiny 'input' function if it has a formal named 'inputId', and
  2. We assume that a function is a shiny 'output' function if it has a formal named 'outputId'.

This, presumedly, allows both shiny and companion add-on packages (that might generate their own inputs) to work as well, presuming they follow this formula.

We also check our completion database, in the case that shiny is not loaded, to see if we have it within there -- if we do, then we can still provide completions (even if shiny is not loaded / attached).

cc @jcheng5 -- do you think the aforementioned method is appropriate enough for guessing whether something is a shiny input/output function?

jjallaire added a commit that referenced this pull request Apr 10, 2015
@jjallaire
jjallaire merged commit 9b1cc45 into master Apr 10, 2015
@jjallaire

Copy link
Copy Markdown
Member

We can reflect any suggestions from @jcheng5 in a subsequent commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants