gasilheads.blogg.se

Load r rmarkdown github portfolio
Load r rmarkdown github portfolio






We type in git push -u origin master, and click Enter. Then we're going to push everything using the modified push command that you've seen before. Remember that we are going to have to copy the URL from the GitHub repository to the clipboard so that we can put it in here, git remote add origin, followed by the URL, and click Enter. Type in the following commands, we're going to use the git add command to stage the files, and we'll add git commit and this is our first commit. So open your Git Bash window and make sure that you're in the new folder for WCTemplatesPackage. Now that you have a basic skeleton of an R package created and we've initialized it using Git, we need to link this folder back to the GitHub repository that you've created. Once RStudio restarts, you'll notice up here at the top right, we now have a tab for Git. It also says that you need to restart RStudio. It's going to say, do you want to initialize this with the new Git repository? Click Yes.

load r rmarkdown github portfolio

We want to switch to Git, click the down arrow and select Git. Let's go ahead and click on Tools > Project Options and click on the tab for Git/SVN and you'll notice that it currently says version control system is done. So this opens a new R session for this project. This is going to open the project in a new R session and it says do you want to open it? Say Yes. Next, let's click on the WCtemplatePackage.Rproj file. Go ahead and click on this folder so you can view the files in this new directory.

load r rmarkdown github portfolio

If you don't see it right away, be sure to click to the Refresh button shown up here as a little circle with an arrow. You'll notice in the file viewer at the right, when you click Refresh, we now have a new folder called WCtemplatePackage. So type in devtoolscreate::("WCtemplatePackage") and click Enter. So from devtools we type in the command create followed by the name of the GitHub repository that we just created. To do this, we need to type in the following command. Now that we have got devtools loaded we are going to create a package named the same name as the GitHub repository that you just created, WCtemplate package. Then in the Console window, we need to load the devtools package using the library command, then click Enter.

#Load r rmarkdown github portfolio install

Go ahead and click on Tools > Install Packages to install the devtools package. We're going to need the devtools Package to create a new R package. You can also set the working directory in RStudio by clicking on Sessions > Set Working Directory > Choose Directory. Go ahead and run the set working directory command. We type in the following, setwd followed by the file location. Next in the Console window, we're going to change to the RepTemplate folder on our computer using the set working directory function. You can do this by clicking File > Close Project. And then click Create repository, next we're going to go into RStudio and close any previous projects that you're working on. However, this time we are not going to create a README file, so leave that unchecked.

load r rmarkdown github portfolio

Weather Check- R package with an R Markdown Template. So we're going to call the repository WCtemplatePackage and we'll type in a description. Let's go ahead and create a new GitHub repository. For this lesson, since we're creating in R package, we're going to begin with a new GitHub repository and a new RStudio project.






Load r rmarkdown github portfolio