@jdb thanks for your time and assistance, seriously!!
I was able to now understand the syntax of what the code was supposed to do, it needed the full file path.
htmltools::img(src = knitr::image_uri("C:/Users/my_name/Dropbox/R-Projects/LFC_logo.png"),
alt = 'logo',
style = 'position:absolute; top:0; right:0; padding:10px;'),
The issue with the above is that the logo is huge and overlaying the rest of the report, is there a way to adjust the size for the above code?
I also found the alternative, but for the below I don't know how to adjust the position. The size of the logo is perfect but it is placed below the YAML header, I would like it to be at the top right corner "in" the YAML header...
---
title: "Title"
author: "Author"
date: '`r format(Sys.time(), "%d %B, %Y")`'
output: html_document
---
```{r, out.width = "400px", echo=FALSE}
knitr::include_graphics("C:/Users/my_name/Dropbox/R-Projects/LFC_logo.png")
The goal is to have the logo at the top right corner, the 400px size is fine, I just need to figure how to adjust the position of the image.
Do I need to use different codes if the output changes? I currently output the report as html, but be requested to hand it in in pdf, from what I've been reading online the answer is yes...?
Once again, thank you for your time and assistance!