FileInfo

Languages

Overview

What is an R file? An R file is a script written in R, a programming language used for statistical analysis and graphing purposes. It contains code that can be executed within the R software environment. R files may include commands that create objects (functions, values, etc.) and produce visualizations of the computed data.

More Information R file open in RStudio 1.2.5 You will most likely only encounter R scripts if you work in a field that focuses on statistical analysis and uses the R programming language to develop data analysis programs. The R and RStudio programs are typically used to open R files since they provide helpful IDE tools. You can also use a plain text editor to view the contents of an R script. This is especially helpful for users unsure of what the R file contains. If this pertains to you, open the file with Microsoft Notepad in Windows or Apple TextEdit in macOS to examine what is stored in the file. Both of these text editors come bundled with their respective operating systems.

Popularity3.9/5

64 votes

Quick AppUsed by
VerifiedVerified by FileInfo.com The FileInfo.com team has independently researched all file formats and software programs listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified. If you would like to suggest any additions or updates to this page, please let us know .

R 2.13.2 Icon

Breadcrumbs

DeveloperREBOL Technologies
Popularity1.4 | 16 Votes

Previous / Next

In-Depth

.R File Extension

5 file types use the .r file extension.

R Script

DeveloperThe R Project for Statistical Computing
Popularity
3.9  |  64 Votes
 

NEW: Open your .R file online with File Helper . View Online

What is an R file?

An R file is a script written in R, a programming language used for statistical analysis and graphing purposes. It contains code that can be executed within the R software environment. R files may include commands that create objects (functions, values, etc.) and produce visualizations of the computed data.

More Information

R file open in RStudio 1.2.5

You will most likely only encounter R scripts if you work in a field that focuses on statistical analysis and uses the R programming language to develop data analysis programs. The R and RStudio programs are typically used to open R files since they provide helpful IDE tools.

You can also use a plain text editor to view the contents of an R script. This is especially helpful for users unsure of what the R file contains. If this pertains to you, open the file with Microsoft Notepad in Windows or Apple TextEdit in macOS to examine what is stored in the file. Both of these text editors come bundled with their respective operating systems.

Programs that open or reference R files

Sort

Pricing

Program Name

Platform

Reset

X

Windows

File Viewer Plus

Get it from Microsoft

Free +

R

Free

RStudio

Free

Any text editor

Mac

R

Free

RStudio

Free

Any text editor

Linux

R

Free

RStudio

Free

Any text editor

Web

FileHelper.com

Free

Android

File Viewer for Android

Free +

Category: Developer Files

Updated: February 6, 2020

Rez Source Code File

DeveloperApple
Popularity
2.6  |  11 Votes
 

An R file may also be a source code file used by Rez, an older resource compiler once included with Apple's developer tools. It contains written definitions of application resources, such as strings, icons, menus, alerts, and other structured data. Each R file includes both the resource types and the individual resource entries that Rez uses to build a resource fork for a classic Mac application.

More Information

Developers wrote R files to organize and manage the resources used by applications built for classic Mac OS and early versions of macOS. Rez processed these text declarations and produced compiled resource data that could be embedded in application bundles or other files.

The companion tool DeRez could reverse this process by converting compiled resources back into readable R files. Although modern versions of Apple Xcode no longer include these tools, they were once a standard part of older Mac development workflows.

How to open an R file

You can open R files with any text editor, such as Apple TextEdit , Sublime Text , or Microsoft Visual Studio Code . Older versions of Apple Xcode included the Rez compiler, which developers used to compile R files into application resources.

Programs that open or reference R files

Sort

Pricing

Program Name

Platform

Reset

X

All Platforms

Microsoft Visual Studio Code

Free

Mac

Apple Xcode

Free

MacroMates TextMate

Free

Bare Bones BBEdit

Free Trial

Apple TextEdit

Included with OS

Category: Developer Files

Updated: November 21, 2025

Right Audio Channel File

DeveloperN/A
Popularity
1.9  |  9 Votes
 

An R file may also be an audio file that stores the right channel of a stereo recording. It is typically created when audio production software exports each stereo channel as a separate file, allowing engineers to edit or process the left and right channels independently. Because the file contains only one side of a stereo mix, it must be combined with a matching .L (left channel) file to form the complete audio track.

More Information

Audio editing and digital audio workstation ( DAW ) applications create R files when users choose to work with split stereo audio rather than a single interleaved file. For example, Digital Performer, Cubase, and other multitrack editors may generate R files during export or when users record audio in a format that separates channels. This workflow can be useful for sound engineers who need separate control over each channel for mixing, effects processing, or correction.

NOTE: R files are usually saved in standard audio formats, such as .WAV or .AIFF . The extension .r indicates their channel role rather than their container format.

How to open an R file

You can open R files with most DAWs, audio editors, and media players, including Avid Pro Tools , Audacity , and VideoLAN VLC Media Player (as long as the app supports the format in which the R file is saved). The apps will recognize it as a mono audio track. For full stereo playback, you must load both the R and corresponding L files and pair them within the audio software.

Programs that open R files

Sort

Pricing

Program Name

Platform

Reset

X

All Platforms

Audacity

Free

VideoLAN VLC media player

Free

Windows

Avid Pro Tools

Free Trial

Steinberg Cubase

Free Trial

Image-Line FL Studio

Free Trial

Adobe Audition 2023

Free Trial

MAGIX Sound Forge Pro 17

Free Trial

Mac

Avid Pro Tools

Free Trial

Apple Logic Pro

Paid

Steinberg Cubase

Free Trial

Image-Line FL Studio

Free Trial

Adobe Audition 2023

Free Trial

Category: Audio Files

Updated: November 20, 2025

Ratfor Source Code

DeveloperBrian Kerhighan
Popularity
1.8  |  8 Votes
 

An R file may also be a source code file used by Rational Fortran (Ratfor), a preprocessor for the FORTRAN programming language. It contains a mix of standard FORTRAN code and Ratfor-specific statements, which provide a more modern and flexible syntax . Before compilation , Ratfor converts the file into standard FORTRAN code that a FORTRAN compiler can process.

More Information

Developers use Ratfor to write code using constructs that FORTRAN does not natively support, such as C-style control flow statements, including if-else , switch , while , and for loops. This functionality makes it easier to write, read, and maintain complex programs while still generating valid FORTRAN code for execution. Developers working on scientific, engineering, or numerical computing projects often used Ratfor to simplify coding in older FORTRAN environments.

How to open an R file

You can open R files with any plain text editor, such as Microsoft Notepad , Notepad++ , or Microsoft Visual Studio Code , to view or edit the source code. To compile and run the code, you first process it with a Ratfor preprocessor to generate standard FORTRAN source code, which a FORTRAN compiler, such as gfortran or Intel Fortran Compiler, can then compile.

Programs that open or reference R files

Sort

Pricing

Program Name

Platform

Reset

X

All Platforms

Any text editor

Windows

Ratfor

Free

Mac

Ratfor

Free

Linux

Ratfor

Free

Category: Developer Files

Updated: November 20, 2025

REBOL Script

DeveloperREBOL Technologies
Popularity
1.4  |  16 Votes
 

Script written in the REBOL programming language; contains code that can be compiled into an executable program; may be a program file or a header file referenced by other REBOL program files.

More Information

REBOL stands for "Relative Expression Based Object Language." The language is commonly used for creating Internet scripts and applications.

Programs that open or reference R files

Sort

Pricing

Program Name

Platform

Reset

X

Windows

Mac

Linux

Category: Developer Files

Updated: January 9, 2010

FAQ

What is an R file?
An R file is a script written in R, a programming language used for statistical analysis and graphing purposes. It contains code that can be executed within the R software environment. R files may include commands that create objects (functions, values, etc.) and produce visualizations of the computed data.