R: Error in as.vector(x, “character”): cannot coerce type 'externalptr' to vector of type 'character'
问题 I am using the R programming language. I am trying to combine a HTML file and a JPG Image file together. My code looks something like this: library(plotly) library(shiny) library(magick) #create widget_1 widget_1 = plot_ly(iris, x = ~Sepal.Length, type = "histogram", nbinsx = 20) #upload some jpg image from your computer into R my_image = image_read("my_image.jpg") doc <- htmltools::tagList( div(widget_1, style = "float:left;width:50%;"), div(my_image,style = "float:left;width:50%;") )