![]() Now you have a website that is better than 95% of people in your situation. Well first off you add, commit, and push all your new fancy changes to github. Open the repository with finder or whatever tool your computer uses to look at files then click on index.html and hopefully you should get something that looks like this. Or more likely I messed up and you should inform me. If so, yay, if not, double check all the stuff above to make sure you followed it exactly. Now if everything has gone according to plan, by running the code in build_site.R you should get a bunch of unintelligible output followed by the message : Output created: index.html. It also helps explain the process a little bit more. ![]() This could be helpful if in the future you are doing this on a computer without RStudio. setwd( "/Users/Nick/personal_site")Īs a note, you could skip this step if you had started by creating an RStudio project, however, by doing it this way we are not dependent upon RStudio itself. #This helps avoid confusion if our working directory is #not our site because of other projects we were #working on at the time. Every time you host a repository on github it is stored on a server for access.Ĭlick the plus icon in the upper right corner of your github page and select New repository. This all sounds very complicated and expensive, and it used to be, but now computation is so cheap that companies literally give away server space to people all the time. So when we say “host your site” we simply mean we need to find a server to put your website’s files on that will then deliver those sites to people who want to see them via their web browser of choice. ![]() That server, which is simply another computer, receives the request, then goes into its hard-drive and pulls up the file it has stored for and sends that file back to your computer. Whenever you go to a website, e.g. your computer is sending out a request across the series of tubes known as the internet to a server sitting on top of some cloud somewhere (aka Indiana) that it would like to look at Vanderbilt’s website. First things first, let’s set up our github repository for hosting this site.
0 Comments
Leave a Reply. |