rstudio / shinyuieditor

A GUI for laying out a Shiny application that generates clean and human-readable UI code
https://rstudio.github.io/shinyuieditor/
MIT License
209 stars 29 forks source link

Should the `rstudioapi` package be a dependency of the shinyuieditor package and installed at the same time? #249

Open scubastevew opened 7 months ago

scubastevew commented 7 months ago

Was testing the shinyuieditor on posit.cloud and when I went to launch the app, I get:

> launch_editor(app_loc = "loc/of/app")
Error in check_for_url_issues() : 
  In order to use shinyuieditor on a hosted version of RStudio you will need to install the rstudioapi package.
Run install.packages("rstudioapi") to install it.

After installing the rstudioapi package, I was able to launch the application successfully.

I believe that @jilliancahill ran into something similar but I think they were using RStudio Desktop.

The question is, should the rstudioapi package be a dependency that gets installed when installing the shinyuieditor?

Steps to reproduce:

  1. install.packages("remotes")
  2. remotes::install_github("rstudio/shinyuieditor"
  3. require(shinyuieditor)
  4. launch_editor(app_loc = "loc/of/app")

Actual Results: This message is displayed:

> launch_editor(app_loc = "loc/of/app")
Error in check_for_url_issues() : 
  In order to use shinyuieditor on a hosted version of RStudio you will need to install the rstudioapi package.
Run install.packages("rstudioapi") to install it.