I am trying to reproduce an image from pandoc
to Rmarkdown
.
The pandoc way :

My trial Rmarkdown:
url <- "https://images.unsplash.com/photo-1563204996-8965f0a4a860?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=934&q=80"
knitr::include_graphics(url, dpi = 600)
I am able to knit the file and able to generate the image same as pandoc but also additionally would like to set the output width of the figure to 600px
which I am trying by placing in dpi=600
.
I am skeptical about that is the image actually resized after performing this or is there an alternative way?