A series of instructions on how to deploy websites with Netlify using Rmd files.
Postcards is a simple landing website, basic quick information about you and social media links.
install.packages('postcards')library(postcards)create_postcard(template= "NAME_OF_TEMPLATE")knit the file, which makes a html filecommit and push all files to GitHubopen new site from Git > GitHub > type
in name of repo > branch to main > deploy site > deploy
progress (look for deployed) > click on link for previewinstall.packages('distill')library('distill') then restart RStudio sessionlibrary('distill')create_website(title='TITLE')_site.yml
has the core shell of websitecommit & push files, then restart the RStudio
sessionabout.Rmd file so a new one is created,
commit & push filespostcards::create_postcard(template='TEMPLATE', file="about.Rmd")about.Rmd file is created, click on
Build then click on about in nav bar,
commit & push filesopen new site from Git > GitHub > type
in name of repo > branch to main, publish directory:
_site > deploy site > deploy progress (look for
deployed) > click on link for previewinstall.packages('xaringan')library('xaringan')commit & push filesopen new site from Git > GitHub > type
in name of repo > branch to main > deploy site > deploy
progress (look for deployed) > click on link for previewfile not found but go to the
url bar and add the file name to the url.
<name_of_website>.netlify.app/ninja-pres-name.htmlninja-pres-name.html and
rename the pres-ninja-name.Rmd as index.Rmd
and knit it, commit & push files<name_of_website>.netlify.app/index.html
or without the /index.html and should workoutput: xaringan::moon_reader then knit itinstall.packages('bookdown')library('bookdown')create_bs4_book(path=".")