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

menus missing after install on Rstudio-server #131

Open
urielcarrasquilla opened this issue Apr 15, 2020 · 18 comments
Open

menus missing after install on Rstudio-server #131

urielcarrasquilla opened this issue Apr 15, 2020 · 18 comments

Comments

@urielcarrasquilla
Copy link

Ubuntu 16.04.6 LTS
R 3.6.1
Access to Radiant via browser using Rstudio-server

Messages received:

radiant::radiant()

Starting radiant in the default browser ...

Use radiant::radiant_viewer() in Rstudio to open radiant in the Rstudio viewer
or radiant::radiant_window() in Rstudio to open radiant in an Rstudio window

Listening on http://127.0.0.1:7682

However, the Menus on the left pane where the datasets can be uploaded are missing.
I suspect the "git clone" of the Radiant source is not in the correct location.
I put it under /home/rstudio (same place where R directory is located for all of the R packages in use by user=rstudio).

@vnijs
Copy link
Contributor

vnijs commented Apr 15, 2020

Please review the "Installing R, Rstudio, and Radiant on Linux" section at the link below. You don't need to clone the sources if you are running from Rstudio. If all ubuntu dependencies are available, running the below should get you the latest version of all relevant packages.

install.packages("radiant.update", repos = "https://radiant-rstats.github.io/minicran/")
radiant.update::radiant.update()

https://radiant-rstats.github.io/docs/install.html

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 15, 2020 via email

@vnijs
Copy link
Contributor

vnijs commented Apr 15, 2020

Can you post the screenshot again? I can't see it on github. Also, are there any messages shown in Rstudio or in the Developer Console of the web-browser?

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 15, 2020 via email

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 15, 2020 via email

@urielcarrasquilla
Copy link
Author

image

@vnijs
Copy link
Contributor

vnijs commented Apr 15, 2020

I'm 99% sure you are still missing some linux dependencies. On Windows and macOS these dependencies are automatically include. This is not possible on Linux however. Did you follow the dependency instructions for linux listed on the page below?

https://radiant-rstats.github.io/docs/install.html

We run radiant in linux servers and through Rstudio on Ubuntu 18.04 without any issues. I'm not sure what shinyapps.io uses but likely 16 or 18. See demo below.

Free-tier instance on shinyapps.io: https://vnijs.shinyapps.io/radiant/

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 16, 2020 via email

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

Ah. You found a bug in the update script! Thanks for reporting @urielcarrasquilla. Can you try again now?

BTW I have Rstudio Package Manager running at the url below. However, this only provides binaries for Ubuntu 18.04

https://rsm-compute-01.ucsd.edu:4242/client/

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

Also, you may be interested in the docker container I have that includes shiny-server, rstudio-server and radiant

Images: https://hub.docker.com/r/vnijs/radiant
Docker and launch files: https://github.com/radiant-rstats/docker

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 16, 2020 via email

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

Wow. I can't see any issues in the install process. However, (1) I can't reproduce the issue on any computer I have access to (see e.g., screenshot below for Rstudio server) and (2) there are no error messages in Rstudio or in the developer log for me to work from.

Is the docker container an option for you? Or is there any way for me to temporarily access the server to see if I can spot something? My work email is [email protected]

image

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

I did also just update radiant on CRAN. Could you just try:

install.packages("radiant.data")
radiant.data::radiant.data()

I just tried this on rstudio cloud and it is running fine

image

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

radiant also installed and ran without a hitch in rstudio cloud. So nice to have binary packages from Rstudio so it doesn't take HOURS to install packages :)

install.packages("radiant")
radiant::radiant()

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 16, 2020 via email

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

For radiant, use 8181:8181 instead. Username: jovyan, Password: rstudio

docker run --rm -p 8181:8181 -p 8787:8787 -v ~:/home/jovyan vnijs/radiant

@urielcarrasquilla
Copy link
Author

urielcarrasquilla commented Apr 16, 2020 via email

@vnijs
Copy link
Contributor

vnijs commented Apr 16, 2020

If you start Radiant from RStudio on a server you should have access to the filesystem on the server as well. You can also load any data you have access to through R > Rmarkdown if you can (1) store it in a data.frame (e.g., my_data) and then (2) use register("my_data") so the data shows up from the dataset dropdowns.

If you prefer using Radiant through shiny-server (i.e., port 8181) then adding the options below to your .Rprofile file should allow you to look at files in your home-directory on the server. This last part is not that well tested because I have most students use Radiant through Rstudio.

If you want to have a quick zoom call about what you are trying to achieve, reach out to me through [email protected]

options(radiant.maxRequestSize = -1)
options(radiant.report = TRUE)
options(radiant.shinyFiles = TRUE

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

2 participants