Abstract The field of ecology has been greatly enhanced by the integration of computational tools and statistical methods, with the programming language R emerging as a pivotal and flexible tool for ecological inquiry. As ecological research accelerates, understanding the prevalent trends and specific usage patterns of R in recent studies is crucial. Our investigation explored the use of R and its packages in 125,494 scholarly articles across 40 ecology journals from 2008 to 2023. A considerable number of articles, 52,658 (41.96%), designated R as their principal analytical tool, demonstrating a steady linear growth in its utilization from 10.31% in 2008 to 66.88% in 2023. Twelve R packages, including "lme4," "vegan," "nlme," "MuMIn," "ape," "ggplot2," "car," "mgcv," "MASS," "raster," "multcomp," and "lmerTest," each played a pivotal role in contributing to more than 1,000 scholarly articles. The highest usage rate of the lme4 package indicates that mixed-effect models have a particularly important role in ecological research, and the application of these models has helped ecologists solve many important scientific problems. Journal-specific package preferences aligned with their scientific domains, while the rise in the average number of R packages per article signals a trend towards more complex analytical methods in ecology. Our findings indicate a reciprocal relationship between the development of R and ecological research, underscoring the need for collaboration among quantitative ecologists, R developers, and ecologists to further advance both the language and the field.
Read full abstract