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

Add more RStudio like functionality (indenting, common completions, cursor placement...etc) #86

Open
scrapeable opened this issue Jan 1, 2024 · 0 comments

Comments

@scrapeable
Copy link

scrapeable commented Jan 1, 2024

shinyAce is great! I'm working on an open source hybrid between a code editor and a BI tool for a package I'm planning to call ShinyBI. It is influenced a lot by radiant and exploratory.io. Screenshot below of the app.
ShinyBI

I'm planning to pursue bringing some more rich functionality to shinyAce to closer mimic the experience of writing code in RStudio, most of which I believe can be found here. Has anyone tried doing this at all? Is there any big roadblocks preventing this that I could know about? Or am I missing something and this is already easily doable in shinyAce?

Examples of RStudio like functionality

# auto indenting pipes (shinyAce)
df <- iris %>%
mutate(...)
# auto indenting pipes (RStudio)
df <- iris %>%
     mutate(...)
# function completion cursor in function (shinyAce)
mutate
# function completion cursor in function (RStudio)
mutate(`cursor here`)
# function args (shinyAce)
pivot_longer
# function args  (RStudio)
pivot_longer(data = ...)

I also posted something similar on posit community to see if anyone can point me in the right direction https://community.rstudio.com/t/enhancing-shinyace-to-be-more-like-rstudio-function-completion-function-args-auto-indenting-cursor-placements/179569

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

No branches or pull requests

1 participant