R

Share:

These questions were presented to the respondents who selected R as one of the languages they had used in the last 12 months. An important factor to keep in mind is that our survey targeted developers, while a lot of R users don’t identify themselves as such. Only 16% of R users listed R among their primary languages, while most R users (64%) identify Python as their primary language. Additionally, about half of the users of R in our research are students.

Which version of R do you mainly use?

48%

4.1 or newer

48%

4.0 or newer

15%

4.0

8%

16%

3.6

1%

5%

3.5

More than 60% of respondents use the latest versions of R. Only 11% reported using versions 3.6 or older of the language, compared to 25% last year. There are a substantial number of respondents who did not know the version of R they use.

Which of the R 4.1 syntax features have you started using in your code?

35%

Native pipe operator

20%

Shorthand syntax for anonymous functions \(x)

55%

None

Over half of the respondents have started using the R 4.1 syntax features. 49% of those who started using shorthand syntax for anonymous functions also started using native pipe operators.

What IDE do you use to code R?

78%

RStudio

18%

Visual Studio Code

11%

PyCharm

10%

Jupyter Notebook

5%

DataSpell

3%

Visual Studio

3%

Other IntelliJ-based IDE 

4%

Other

What do you use R for?

70%

Data analysis

55%

Educational purposes

17%

Machine learning

8%

Programming of parsers/scrapers/ETL scripts etc.

4%

Production code

3%

Other

The use cases for R remain quite stable year over year. More than half of the respondents use R for data analysis or educational purposes.

Which of the following packages do you regularly use with R?

56%

ggplot2

38%

dplyr

29%

tidyr

29%

plotly

28%

data.table

19%

shiny

13%

devtools

GGPlot2 is the most popular package to use with R – more than 50% of the respondents use the package. Since data visualization is one of the most important tasks in data science and education, it is not surprising that GGPlot is the most popular package to use with R.

Which form of R code organization do you use?

70%

pure .R files

39%

projects in IDE

32%

Rmarkdown

10%

shiny applications

8%

R code inside some specific environment

1%

Other

Where do you execute R code?

90%
92%

Local machine

25%
16%

Server

10%
10%

Cloud service

5%
3%

Cluster

1%

Other

The popularity of using virtual machines for executing R code has grown since last year. One in four respondents uses servers for executing R code in 2022. Nevertheless, an overwhelming majority of users execute R code on their local machines.

What do you use to debug your code?

51%

I don’t use any specific tools

28%

I use breakpoints in IDE (RStudio, PyCharm etc.)

22%

Rstudio “Rerun with Debug” or “Show traceback” features

14%

debug()

6%

browser()

6%

traceback()

Thank you for your time!

We hope you found our report useful. Share this report with your friends and colleagues.

If you have any questions or suggestions, please contact us at surveys@jetbrains.com.