Shiny Hosting - ggplot2 error

591 views
Skip to first unread message

John Lueders

unread,
Jul 6, 2013, 12:45:35 AM7/6/13
to shiny-...@googlegroups.com
Just signed up for a Shiny Hosting account.

Created a 'ShinyApps' folder as instructed.
Created a 'v1' folder under that.
Uploaded ui.R, server.R code files in 'v1'.

Upon visiting our url...received the following error.

Error in library(ggplot2) : there is no package called ‘ggplot2’

Note: that the ui.R and server.R work fine on my Mac via RStudio command line.
How do we get ggplot2 to run as expected?


All the best,

John

Andrew Clark

unread,
Jul 6, 2013, 2:31:29 AM7/6/13
to shiny-...@googlegroups.com
Did you install it on the server?

John Lueders

unread,
Jul 6, 2013, 9:11:27 AM7/6/13
to shiny-...@googlegroups.com
Thank you for writing.
No…I was thinking that it had all the packages…my oversight.

In the confirmation email, it states to SSH in using RStudio command line…
I will do some research on this first and then write if I have any questions.
I have not SSH in from RStudio before.

John




--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/YPosJdnJVJs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Lueders

unread,
Jul 6, 2013, 9:36:56 AM7/6/13
to shiny-...@googlegroups.com
Thank you for writing.

No…I was thinking that it had all the packages…my oversight.

In the confirmation email, it states to SSH in using command line…
I successfully SSH'ed in using Terminal on my Mac.

What is the statement to install 'ggplot2'?

I'm looking around, any help would be appreciated.

My Newbie questions continue...I just hope they help others new to setting up a RStudio Shiny server.

Thanks!

Andrew Clark

unread,
Jul 6, 2013, 6:37:10 PM7/6/13
to shiny-...@googlegroups.com
Well you obviously installed it locally if your app is runnning so do the same remotely

If you are in the default RStudio environment

you should have a packages tab. Click on it then install packages
then enter ggplot2 in the popup and press install

I have windows so may differ, I suppose

or just type
install.packages("ggplot2") 

at the R console

Joe Cheng

unread,
Jul 6, 2013, 6:43:47 PM7/6/13
to shiny-...@googlegroups.com
I believe the email says to SSH in *or* use RStudio Server. The latter is very easy, just point your browser to http://spark.rstudio.com:8787.
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Sent from my phone

John Lueders

unread,
Jul 6, 2013, 11:47:27 PM7/6/13
to shiny-...@googlegroups.com
Hi Andrew and Joe,

Thank you very much!

What I did not do was use the incredibly easy http://spark.rstudio.com:8787.
I just didn't realize (based on reading the confirmation email) that it was that easy.

For newbies who are reading this, the RStudio Server URL that you receive after signing up for Shiny Server Beta, is a simple login page.
After logging in, RStudio presents itself identically to a locally running RStudio application on your Windows or Mac.
It then behaves the exact same way as well.

This is probably common knowledge to those in the know, but as a newcomer to the RStudio realm, it was a very nice surprise.

Thank you Andrew and Joe!

I will continue to write my basic questions and soon my basic questions will migrate to intermediate difficulty.

Inserting an image of RStudio Server running in my browser for information's sake...




John Lueders

unread,
Jul 7, 2013, 12:15:16 AM7/7/13
to shiny-...@googlegroups.com
Here is a screenshot of the RStudio Server URL that we were assigned to and login page that presents itself.

When I read the 'Your Shiny beta hosting account' confirmation email, it looked like the instructions were for using a FTP tool and then I read SSH and it looked like I needed to do command line stuff in Terminal windows. Using the RStudio Server URL link provided in your confirmation email is the way to go.



Andrew Gormley

unread,
Aug 25, 2013, 8:22:54 PM8/25/13
to shiny-...@googlegroups.com
Just out of curiosity, do you know the method for installing over SSH? I cannot access the http://spark.rstudio.com:8787. page from behind work's firewall.... I logged in via Putty, but then I am stumped.
I tried :
install.packages("mc2d")
But I get a message
-bash: syntax error near unexpected token `"mc2d"'
...
Andrew

Joe Cheng

unread,
Aug 26, 2013, 3:48:53 AM8/26/13
to shiny-...@googlegroups.com
First enter the command "R" to enter the R console, then do the install.packages command.


Reply all
Reply to author
Forward
0 new messages