displaying a pdf from a local drive in shiny

后端 未结 3 1625
猫巷女王i
猫巷女王i 2020-11-28 10:54

I\'m still new to r and shiny, and i\'m stumped with what should otherwise be simple logic. I am trying to display pdf files in imageOutput widgets but with no luck. Could s

3条回答
  •  醉酒成梦
    2020-11-28 11:00

    Additional to Fabian N.'s answer.

    There are two important things:

    1. Make sure you create a R Shiny Web Application from Rstudio. Make sure you run as "Run App". Otherwise, files in "www" folder can not be accessed!

    1. Make sure you create a "www" folder in Web Application directory.

提交回复
热议问题