Where to get help with your R question?
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Last time I blogged, I offered my obnoxious helpful advice for blog content and promotion. Today, let me again be the agony aunt you didn’t even write to! Imagine you have an R question, i.e. a question related to how you can do something with R, and your search engine efforts haven’t been too successful: where should you ask it to increase your chance of its getting answered? You could see this post as my future answer to stray suboptimal Twitter R questions, or as a more general version of Scott Chamberlain’s excellent talk about how to get help related to rOpenSci software in the 2017-03-07 rOpenSci comm call.
I think that the general journey to getting answers to your R questions is first trying your best to get answers locally in the documentation of R, then to use a search engine, and then to post a well-formulated question somewhere. My post is aimed at helping you find that somewhere. Note that it’s considered best practice to ask in one somewhere at once, and to then move on to another somewhere if you haven’t got any answer!
One thing this post isn’t about is how to ask for help to humans, which is a topic that’s e.g. covered very well in Jenny Bryan’s talk about reprex
in the same 2017-03-07 rOpenSci comm call, but I’ll link out to useful resources I’ve found. This post is also not about how to ask for help to e.g. Google, and I don’t know of a good search engine guide yet although e.g. “It can be particularly helpful to paste an error message into a search engine to find out whether others have solved a problem that you encountered.” in https://www.r-project.org/help.html is true.
Public question platforms vs. safe spaces?
I’ll start this post with a general comment for newbies who aren’t at ease enough yet to post their question, no matter what type of questions (see later), to anywhere public: find your safe and friendly space!
Lean on your current friend(s)
Do you have an R friend? Maybe this colleague who actually convinced you to start using R? Well, ask this person for help! Remind them it’s their fault you’re struggling now.
And if you’re not a newbie but are reading this now, be this R friend! Mentor newbies on their way to be better R users and askers.
Find new friends
Join a community, and ask your questions there. More specifically, you can join the R4DS community; your local/remote R-Ladies community (as a reminder, this doesn’t mean women only but instead “minority genders (including but not limited to cis/trans women, trans men, non-binary, genderqueer, agender)”); this French-speaking community. Such communities most often have Slack workspaces or equivalent, with an r-help channel, as well as a code of conduct and a general friendly attitude. Build your confidence there, and soon, you’ll be out asking (and answering!) R questions in the wilderness as well.
Note, if you know of any list of such friendly communities, please tell me. I only know of this list (of lists) of R User Groups and Conferences by David Smith.
Spotlight on my typology of R questions
One thing I especially like about Scott Chamberlain’s slidedeck is his typology of methods to get help, “methods and what they’re good for”. I’ll build this post based on a typology of questions, that also intersects with a typology of your newbiness-nervousness.
I tend to think of R questions as pertaining to one of these categories:
is this a bug, why am I stuck with this code? how do I install
rJava
on my laptop? (problem!) Problems encompass actual bugs, and problems where the problem is your code rather than the package (I’ll admit that I find joy in my code’s sometimes not being the problem, although this doesn’t solve the problem.).is there a tool in R for doing
foo
? how do I learn aboutbar
? (question!)what’s the best plotting library in R? dependencies, is less more? (debate!)
I agree that the difference between debate and question might be thin, in my mind question questions have more of a trivia aspect, with answers being easier.
Where to ask your problem question
Scenario: you wrote R code, and it doesn’t do what you expected it to, which includes the glorious cases of not running at all or of using packages you haven’t even been able to install. What do you do then?
If your problem is linked to a package in particular, i.e. you know the function that’s causing you sorrow comes from the
foo
package, then your question is afoo
question or bug report. So what you need to find now is the platform to report bugs and ask questions aboutfoo
.It might be written in
foo
docs/metadata. Have a look in the docs, and observe the website or development repository of the package. E.g. if you useblogdown
, its BugReports URL is https://github.com/rstudio/blogdown/issues and if you were to try and open an issue there with your bug or other problem, you’d get to see the template that tells you to use Stack Overflow first for general questions. GitHub repos can also contain question guidance as part of their CONTRIBUTING.md. If you useINLA
and have questions, you’ll find http://www.r-inla.org/help useful. I remember having many questions aboutINLA
during my PhD, and sometimes having to ask them in the mailing list when the docs couldn’t help me any further.You’ll rarely have to email the maintainer of a package, but you might have too, e.g. if you wonder whether the package will be further maintained or as Scott said here, if your problem is specific to some sensitive data and an rOpenSci package.
Sometimes
foo
provider can also be a clue. Iffoo
is an rOpenSci package, you can ask for help on rOpenSci’s forum or on Stack Overflow using the “ropensci” tag. Iffoo
is an RStudio package, you can ask for help on RStudio’s forum… You get the gist.
When there’s no other indication or you’re not sure
foo
orbar
is the actual culprit, use a more general site like Stack Overflow, tagging your question with “r” and other relevant labels. I was pleased to see that the bottom of https://www.r-project.org/help.html includes a list of question venues including Stack Overflow, but also all R mailing lists.
Where to ask your question or debate question
How to find out whether there’s a tool to do image manipulation in R? How to know what’s best practice for your special package development challenge? How to get a book recommendation?
Maybe Twitter, to which I’ll dedicate a whole section a bit later. But a good guess is also trying to locate where the experts, or people interested in the answer, normally interact. Your finding your happy place will probably be a bit of a trial-and-error process, so while asking your first question might be more difficult, things should be easier as you learn to navigate the different communities and their activity. Here is some inspiration:
The R SIG (special interest group) mailing lists. Now I don’t use them at all because I’m not keen on receiving and sending many emails, but I can see there’s a great diversity of groups, maybe one that’ll suit your interests!
If your question is related to open science, reproducibility, documenting data, extracting data out of something (a PDF! a PNG!), package development, rOpenSci’s discuss forum might be the right venue.
The RStudio community forum has many categories including the
tidyverse
and the RStudio IDE of course but also about package development; R in production, at scale, and in complex environments, etc.For a question related to outbreak analytics and R programming, check out the R Epidemics Consortium mailing list or Slack.
What is Twitter good for?
Anyone can use Twitter for what they want, depending on the accounts they follow and on their way to consume their timelines and hashtags, so the following is probably even more personal to me than the rest. I think Twitter questions that have higher chances to be answered (because I like answering them!) are the trivia ones, i.e. “is there something to do foo
”, and the more controversial ones if only for having fun. That said, if you don’t have a huge following yet, or post at the “wrong” time, even when using the right hashtags or so your question might be ignored, keep that in mind.
What Twitter is not good not is, in my opinion:
Asking a question about a package by tagging the maintainer especially when the package docs state there’s another venue for that. But then, as a maintainer, one should probably handle such mistakes gracefully (like Yihui did here).
Too much code I think, even if tools like Sean Kross’
codefinch
can help. Your tweet with a question can circumvent the difficulty by advertising a gist like codefinch makes you do (i.e. a tweet with an “attachment”), or by being a link to your actual question on Stack Overflow (i.e. a tweet to try and draw attention to your question).Building an archive of questions and answers. It won’t be easy at all to search whether a question has already been answered. You can counteract this loss of knowledge by asking questions somewhere else, or building something out of the answers you’ve been given, e.g. a blog post listing resources for geospatial analysis in R or resources about transport and GIS in R like Steph Locke and Steph de Silva, respectively, did after getting answers on Twitter.
Surprise questions. At least I am scared of questions phrased like this: “Who has time to help me with
?” (e.g. XML, web scraping). They sound like a trap to me! I’d rather know more precisely what the person wants.
Conclusion
I think it’s as important to ask your questions in the right place as it is to ask them in the right way. I hope this post provided some clues as to know where to ask R questions. Feel free to comment below with questions/suggestions!
I’ll round up this post with a few links of resources to learn how to ask your question:
The guidelines and code of conduct of the venues where you’ve chosen to post your question, if there are some!
the 2017-03-07 rOpenSci comm call “How to Ask Questions so they get Answered! Possibly by Yourself!” was so, so good. I’ve already mentioned the talk by Jenny Bryan about
reprex
and Scott Chamberlain’s talk about getting help about rOpenSci’s software. Furthermore, JD Long reviewed the historical challenges of getting R help.I’ve seen very useful posts on RStudio Community forum when browsing the FAQ tag. In particular, I like “Tips for Introducing Non-Programming-Problem Discussions” and this more general list of FAQs.
Good luck with your questions! The Disqus thingy below is good for questions about this post!
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.