question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expand Session watcher to help auto complete with NSE (tidyverse syntax)

See original GitHub issue

It would be awesome if the session watchers autocomplete could be expanded to work with non-standard evaluation for example when using dplyr’s mutate/select/etc.

I.e. when writing something like:

iris %>%
    select( 

Then have the auto-complete popup with the list of variables within the iris dataset.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
renkun-kencommented, Jan 26, 2021

I filed https://github.com/REditorSupport/languageserver/pull/369 that adds ( to the completion trigger characters in languageserver.

1reaction
renkun-kencommented, Jan 20, 2021

To provide completion items in a pipe expression, without a parser, it is a bit trickier to detect the names of the variables to show completions, although we already have the names() of all variables in the global environment in globalenv.json created by the session watcher. I suggest we do the following:

my_dt %>%
  mutate(var3 = test) %>%
  select(var1, var2, var3)

As a starting point, we should detect my_dt in this case, and hopefully var3 in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expand data frame to include all possible combinations of ...
expand () generates all combination of variables found in a dataset. It is paired with nesting() and crossing() helpers. crossing() is a wrapper...
Read more >
RStudio Release Notes
RStudio 1.4.1106 · A new visual editor for R Markdown documents · The default version of Python used by reticulate can now be...
Read more >
Extend sources of auto-completion with ESS-R #253 - GitHub
It'd be great to extend the places where auto-completion works in ESS. We could start by looking for data = x arguments, and...
Read more >
RStudio Release Notes
(#12047); RStudio now provides autocompletion results for packages used but ... Added a FastAPI help dialog and the following code snippets for setting...
Read more >
Auto-complete for reference fields
By default, a reference field auto-completes as the user types in the field. ... Increase the allowed number of breadcrumb entries.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found