Thanks for your answer and I apologize if I write so late.
I'm not sure I understand everything correctly because, as I said, I have not yet deployed the site on any hosting service (GitHub and Netlify are the ones I know). I want to do this once I finished putting my projects in order and publishing everything at once.
As you say so, once I create a blogdown post/project with the .Rmd extension, I import my data which is located on an external folder from the one where my site is located
```{r, echo = FALSE}
data <- read_excel ("~/folder/sub-folder/dataset.xlsx")
``
and I insert my contents (text, code for analysis etc.), the rendered output (the single html page of the website) will remain as it is even when I have deployed the site regardless of where my data is. Am I right?
What do you mean by
"it depends on how you are deploying your site [...] you could restrict what gets into version control using your .gitignore file"
Currently this is what I have in my .gitignore file
.Rproj.user
.Rhistory
.RDate
.Ruserdata
How can I edit this file? Sorry but I'm not very familiar with git.
For example, if I need to import data from a site that I access with a username and password (such as the Human Mortality Database)
```{r, echo = FALSE}
library(demography)
# import mx from HMD
gb_data <- hmd.mx("GBR_NP", "my-username", "my-password", "Great Britain")
``
and my site is hosted on a public GitHub repository, is there a way to prevent anyone going to content/project/name-project/index.Rmd from seeing this information?