Quantcast
Channel: Read a .RDS file from remote host using Shiny - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Read a .RDS file from remote host using Shiny

$
0
0

I'm hosting my first shiny app from www.shinyapps.io. My r script uses a glm I created locally that I have stored as a .RDS file.

How can I read this file into my application directly using a free file host such as dropbox or google drive? (or another better alternative?)

test<-readRDS(gzcon(url("https://www.dropbox.com/s/p3bk57sqvlra1ze/strModel.RDS?dl=0")))

however, I get the error:

Error in readRDS(gzcon(url("https://www.dropbox.com/s/p3bk57sqvlra1ze/strModel.RDS?dl=0"))) :   unknown input format

I assume this is because the URL doesn't lead directly to the file but rather a landing page for dropbox?

That being said, I can't seem to find any free file hosting sites that have that functionality.

As always, I'm sure the solution is very obvious, any help is appreciated.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images