Skip to content

Embeded iframe in rstudio viewer #2

Description

@cpsievert

I'm working on plotly's R package and thought it'd be neat to embed plotly graphs in the rstudio viewer via an <iframe>, but the content doesn't seem to load in the viewer:

tmp <- tempfile(fileext = ".html")
curl::curl_download("https://gist.githubusercontent.com/cpsievert/f244be845a5cd13eb4e4/raw/9c1633978da3a22ec95dcf7e3af797607bf77a82/index.html", tmp)
rstudioapi::viewer(tmp)

However, it loads for me on Chrome/Firefox:

browseURL(tmp)

cc @mkcor @chriddyp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions