knitr::opts_chunk$set( message = FALSE, warning = FALSE, fig.width = 8, fig.height = 4.5, fig.align = 'center', out.width='95%', dpi = 100 )
The goal of portfoliodown
is to make it painless for data scientists to create polished data science project portfolios, and ultimately help them land high-quality interviews and great careers.
You can quickly view an example data science portfolio that I've set up here: https://mattdancho.netlify.app/. This is the default portfolio that comes with portfoliodown
.
First, load portfoliodown
.
library(portfoliodown)
Next, run the new_portfolio_site()
function, which will install a directory of files that are used to create the Data Science Portfolio Template.
knitr::include_graphics("portfolio_files.jpg")
Next, serve the site using serve_site()
to view what the website will look like once deployed. You can run stop_server()
or restart the R session to stop serving. The website will be served at localhost:4321
or a similar URL.
Under the hood, the portfoliodown
website is simply a blogdown
website without a blog. Therefore, the site can be updated just like a Blogdown site. A great reference is Blogdown: Creating Websites with R Markdown.
We'll cover a few key aspects of customization.
The config.yaml
identifies the overall aspects of the website including:
Params: Google Tag Manager, Logo, Sections (section order can be adjusted here)
Menu: Modifies the navbar tabs and order.
Navigate in the directory to data > homepage.yml
, where the main sections of the website can be updated.
knitr::include_graphics("homepage_yml.jpg")
enable
: In general, you can toggle visibility of a section by setting to true/false
Content: You can modify all of the section content. The layout will stay the same, but the text, images and buttons can be modified.
Deployment is recommended in two steps:
Push your website to Github: Use use_github()
to push the repository from your local machine to the remote GitHub site.
Connect Netlify to GitHub & Publish: Netlify has options for free hosting of websites. Simply create an account. Then connect Netlify to GitHub. Select the GitHub repo containing your website. Then deploy.
I put together a free R masterclass where I share the 10 skills that helped me become a better data scientist.
knitr::include_graphics("rtrack_masterclass.jpg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.