arrow
Return

Do Current Language Models Support Code Intelligence for R Programming Language?

delete2025-10-17
delete0
PRE
AI
Z
Zixiao Zhao
F
Fatemeh H. Fard
DOI:10.1145/3735635delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recent advancements in developing Pre-trained Language Models for Code (Code-PLMs) have urged many areas of Software Engineering (SE) and brought breakthrough results for many SE tasks. Though these models have achieved the state-of-the-art performance for SE tasks for many popular programming languages, such as Java and Python, the Scientific Software and its related languages like R programming language have rarely benefited or even been evaluated with the Code-PLMs. Research has shown that R has many differences with other programming languages and requires specific techniques. In this study, we provide the first insights for code intelligence for R. For this purpose, we collect and open source an R dataset, and evaluate Code-PLMs for the two tasks of code summarization and method name prediction using several settings and strategies, including the differences in two R styles, Tidy-verse and Base R. Our results demonstrate that the studied models have experienced varying degrees of performance degradation when processing R programming language code, which is supported by human evaluation. Additionally, not all models show performance improvement in R-specific tasks even after multi-language fine-tuning. The dual syntax paradigms in R significantly impact the models’ performance, particularly in code summarization tasks. Furthermore, the project-specific context inherent in R codebases significantly impacts the performance when attempting cross-project training. Interestingly, even when Large Language Models like CodeLlama and StarCoder2 are used for code generation, the Pass@K (K=1,5,10K = 1,5,10) results lag significantly behind Python scores. Our research shows that R as a low-resource language requires different techniques to collect a high-quality data. Specifically separating the two R styles has a great impact on the results and the separate dataset could increase the performance of the models. Our research sheds light on the capabilities of Code-PLMs and opens new research directions for researchers and practitioners for developing code intelligence tools and techniques for R. With R’s widespread use and popularity, the results of our study can potentially benefit a large community of R developers, both in research and industry.
Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey
err2026-03-01
err0
PREAI
errShe, Xinyu; Liu, Yue; Zhao, Yanjie; He, Yiling; Li, Li; Tantithamthavorn, Chakkrit; Qin, Zhan; Wang, Haoyu
errShare
errSave
A Survey on Large Language Models for Code Generation
err2026-02-01
err33
PREAI
errJiang, Juyong; Wang, Fan; Shen, Jiasi; Kim, Sungju; Kim, Sunghun
errShare
errSave
Evolutionary Computation-Enhanced Large Language Models for Intelligent Code Completion
err2026-08-01
err1
PREAI
errLiu, Dongbo; Tan, Ziqi; Yen, Gary G.; Duan, Suling; Zhou, Yimin; He, Zhenan
errShare
errSave
PROBE: Benchmarking code generation in large language models
err2026-08-15
err0
errOAAI
errRodrigo Pato Nogueira; Marco Vieira; João R. Campos
errShare
errSave
The applications of solid codes to r-R and r-D languages
err2019-05-25
err1
PREAI
errLiu, Zuhua; Guo, Yuqi; Leng, Jing
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

No organization information available
Cited Papers

Cited Papers

No cited papers available