Data file not available in the app

70 views
Skip to first unread message

Konrad

unread,
Oct 1, 2014, 11:26:26 AM10/1/14
to shinyap...@googlegroups.com

Hi,

I'm just starting my adventure with Shiny. I prepared a primitive app to provides two charts derived from publicly-available Scottish Census data. The app is working fine and when I attempt to publish it the RStudio is suggesting the right files but when I attempt to access the app, I get this error message:
ERROR: object 'oasdta' not found
Naturally, the oasdta is my RDS file that for some reason is not available in the app folder.

Tareef Kawaf

unread,
Oct 1, 2014, 12:54:51 PM10/1/14
to Konrad, shinyap...@googlegroups.com
I would check to see how you are referencing the loading of that data file and make sure that you have either: "data/oasdta.rds" or "./data/oasdta.rds" as the path in your application.

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/ebe76e4a-81b8-4f6d-ae82-298d77500c0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Konrad

unread,
Oct 1, 2014, 2:29:13 PM10/1/14
to shinyap...@googlegroups.com, konra...@gmail.com
Hi, thanks for getting back to me. My path seems to be correct, I'm loading data like that:
# Data
oasdta <- readRDS(file = "./data/oasdta.rds")

Jingyang Chen

unread,
Nov 11, 2014, 3:28:26 AM11/11/14
to shinyap...@googlegroups.com
I'm also experiencing a similar problem, in which the rds file does not seem to load.

Andy Kipp

unread,
Nov 11, 2014, 10:32:39 AM11/11/14
to Jingyang Chen, shinyap...@googlegroups.com
Hi,

Can you share the output of showLogs()?

-Andy

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.

Chen, Jingyang

unread,
Nov 11, 2014, 11:13:41 AM11/11/14
to Andy Kipp, shinyap...@googlegroups.com
Whoops, never mind, I just realized I needed the table in the ui as well but didn't add a line to load it there.  I've added the load line in both server and ui file and now it works.

-Jing
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Reply all
Reply to author
Forward
0 new messages