Adding background image in quarto by using "file path" in R does not work. #8204
Replies: 1 comment 1 reply
-
Could you share and format a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```

The end.
```` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
title: "Evaluation of Selection Strategies"
subtitle: "Me"
author: Nobody
date: "
r Sys.Date()
"date-format: "YYYY-MMM-D"
format:
revealjs:
chalkboard: true
slide-number: true
width: 1600
height: 900
css: ["theme.css"]
theme: simple
pdf: default
editor: source
execute:
echo: true
editor_options:
chunk_output_type: inline
r fontawesome::fa("bullseye", "black")
Learn maths {data-background-image=r imagePath
.black-text-slide}I can´t see the background of the image using this code. Does anyone have a solution? Below is what I got in the slide of the presentation rather that the image background
Learn maths {data-background-image= /Users/jis_casa/Dropbox/Thesis/Presentation/2023-2024/images/Differentcrops.png .black-text-slide}
However, If I do the following (below) it works!!.
r fontawesome::fa("bullseye", "black")
Learn maths {data-background-image="/Users/jis_casa/Library/CloudStorage/Dropbox/Thesis/Presentation/2023-2024/images/Differentcrops.png" .black-text-slide}If I add "Library/CloudStorage" in the path does not work either
"imagePath <- file.path(Sys.getenv("HOME"), "/Library/CloudStorage/Dropbox/AA_UPM/CLASSES/2023-2024/3_CIHEAM/Quarto_Lecture/images/Differentcrops.png")"
Beta Was this translation helpful? Give feedback.
All reactions