I am trying to create a hyperlink in R Markdown that is linked to an address generated by an R code in the chunk above. But this is not working. Example:
---
title: "R Notebook"
output:
html_document:
df_print: paged
---
```{r}
x="www.google.com"
```
this is `r x`
[site](`r x`)
output: this is r x generates the true value which is www.google.com
but the link to the word site includes the path to folder where the .rmd file is located followed by www.google.com
any thoughts on what I can do different?