16 Miscellaneous
Instructor: Leo
16.1 postcards
The above video is in Spanish.
- Similar to https://pages.github.com/
postcardshas 5 templates https://github.com/seankross/postcards- Your website should ideally say something about you, your interests, your projects, and how to contact you. Here are some examples with their source code:
- https://amy-peterson.github.io/ + https://github.com/amy-peterson/amy-peterson.github.com
- http://jtleek.com/ + https://github.com/jtleek/jtleek.github.io
- http://aejaffe.com/ + https://github.com/andrewejaffe/andrewejaffe.github.io
- https://hadley.nz/ + https://github.com/hadley/hadley.github.com
- https://emarquezz.github.io/ + https://github.com/emarquezz/emarquezz.github.io
- https://bpardo99.github.io/ + https://github.com/bpardo99/bpardo99.github.io
- https://daianna21.github.io/ + https://github.com/daianna21/daianna21.github.io
- https://reneegf.github.io/ + https://github.com/reneegf/reneegf.github.io
## Create an RStudio project first with this particular name
usethis::create_project("~/Desktop/YourGitHubUsername.github.io")
## Configure Git and GitHub
## If you don't have git, check "Happy Git and GitHub for the useR" available
## at https://happygitwithr.com/
usethis::use_git()
usethis::use_github()Create your website template using postcards by choosing one of the options below. This will create an index.Rmd file.
## Choose only one of these options, whichever you liked the most
postcards::create_postcard(template = "jolla")
postcards::create_postcard(template = "jolla-blue")
postcards::create_postcard(template = "trestles")
postcards::create_postcard(template = "onofre")
postcards::create_postcard(template = "solana")- Fill out your information using
Markdownsyntax. For example: https://github.com/andrewejaffe/andrewejaffe.github.io/blob/819141c6dca6205d04eabb3d15f36cdd79742766/index.Rmd#L17-L33. - Add links to your own profiles like at https://github.com/andrewejaffe/andrewejaffe.github.io/blob/819141c6dca6205d04eabb3d15f36cdd79742766/index.Rmd#L4-L12.
- Click the
knitblue button on RStudio. This is the same as runningrmarkdown::render("index.Rmd")on the console. This will create theindex.htmlfile. - Make a
git committo save your new files includingindex.htmland thengit pushto upload your files to GitHub. - You will soon have a publicly website available at https://YourGitHubUsername.github.io/
- Feel free to keep editing your website. Remember to
knit, thengit add+git committhe new versions of your files, thengit pushto upload them to GitHub.- If you want to, use
fontawesomelike at https://github.com/emarquezz/emarquezz.github.io/blob/c49eae75d53efa623e5d3bbbb29d77a3f1678a1c/index.Rmd#L7 or emojis like at https://github.com/emarquezz/emarquezz.github.io/blob/c49eae75d53efa623e5d3bbbb29d77a3f1678a1c/index.Rmd#L24.
- If you want to, use
- Share your website and source code through the
randomSlack channel. - (optional) Announce your new website using the
#rstatshasthag and/or the author ofpostcardshttps://twitter.com/seankross.
16.2 Organizing your work
- https://here.r-lib.org/
hereis a great package for avoiding hard coded (full paths) to files.
- https://lcolladotor.github.io/bioc_team_ds/organizing-your-work.html
- My team’s documentation on how to organize our work.
- https://github.com/LieberInstitute/template_project
- Here’s our template for how to organize code in a new project. By using a uniform organization, we make it easier for all of us to understand where code lives. This in turn makes it easier to adapt and re-use code across projects.
Along the way we figured out how to organize our code https://t.co/1KuhHGxLGC
— 🇲🇽 Leonardo Collado-Torres (@lcolladotor) February 17, 2023
This structure helped collaborators join the project within the last months, understand our code base, and make 🤩 contributionshttps://t.co/IbjHZUi92d
- https://lcolladotor.github.io/bioc_team_ds/how-to-ask-for-help.html
- Some of my team’s guidelines for how to ask for help