Chapter 5 Finding Help
5.2 Creating a GitHub account
You will need this during the installation module, but you should go ahead and create your own GitHub account now.
5.3 How to ask a question
Inevitably, at some point your knowledge will exceed that presented in these modules (which is great!) or I have done a poor job explaining something (not so great). Either way, you will be on the hunt to find information on the interwebs. One of the biggest strengths of R is its massive community. However, there are a few steps I try to follow before asking a question
5.3.1 Google
I cannot stress this enough, try searching for your solution online. Good sources can be found on
- GitHub (for the package you are having issues with)
- StackOverflow
- Community.RStudio.com
- Review the package documentation
- Packages released on CRAN will also have a PDF file which describes its inner workings (Here is an example with the
janitor
package)
- Packages released on CRAN will also have a PDF file which describes its inner workings (Here is an example with the
Even if you can’t find a full solution to your problem attempt to fix a small percentage, leaving only the issues you were unable to find solutions for before posting a question
5.3.2 Asking a Question
Before you ask a question, consider how you are going to ask it. It’s important to remember that you are asking for help, be courteous and spend some time adding all the relevant, required information so the individual behind the screen on the other end of the internet can understand you. This is where the concept of “reprex” comes in. Which stands for “minimal reproducible example.
# install.packages("devtools")
::install_github("tidyverse/reprex") devtools
I would highly recommend reading the page on the reprex package.
You can also read about reprex on the tidyverse page
Do’s and don’t of asking questions
Reproducible examples on StackOverflow
5.4 Other Links
- Forking in GitHub
5.4.1 Knowing where to post your question
I personally have always enjoyed StackOverflow for most general questions. However, in instances where you believe that the package in question is at fault, then asking the question on GitHub is a good place to start. If you are having trouble with a specific package, then I would recommend finding the package on GitHub then clicking on “Issues”. There you will find issues that have been posted by other users (which may have already been answered).
5.5 Andrew’s Additions
Website to convert YouTube videos to Markdown syntax