tomwenseleers / export

R package for streamlined export of graphs and data tables.
192 stars 35 forks source link

Could not find layout named "Blank" in master named "Office Theme" #21

Closed boral closed 3 years ago

boral commented 4 years ago

While trying to add a plotly plot, I am getting the following error

Error in add_slide(doc, layout = "Blank", master = "Office Theme") : 
  could not find layout named "Blank" in master named "Office Theme"

Code used

p = plot_ly( ldf, x = ~dates, y = ~m, type = 'scatter', mode = 'lines', name = 'm' ) %>%

  layout( title = paste0( 'Plot of M values over time', tag ) )

graph2ppt(x = p, file="D:\\projects\\Chetan\\Variation of Values.pptx", width=6, height=5, append=T) 
cvanderaa commented 4 years ago

Hello, Sorry for the delay... Does this issue also occur when you try to save a ggplot or a base plot? When I try your example, I get the following error:

Error in doc_parse_raw(x, encoding = encoding, base_url = base_url, as_html = as_html,  : 
  StartTag: invalid element name [68]

Which is linked I think to the fact we cannot support plotly exports (yet?).