.R File Extension
File Type 1R Script File
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.
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.
File Type 2Rez Source Code File
.R File Association 2
Text file used by Rez, a resource compiler for Mac OS X applications; contains declarations for application resources, which can be string lists, icons, alerts, or one of many other resource types; used for building the resources into the resource fork of an application file.
R files must must contain both the type declarations and the resource definitions required to compile the resources. Compiled resources can be decompiled back into R files using DeRez.
NOTE: The Rez compiler is included with Apple Xcode development software.
File Type 3REBOL Script
.R File Association 3
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.
REBOL stands for "Relative Expression Based Object Language." The language is commonly used for creating Internet scripts and applications.
File Type 4Ratfor Source Code File
.R File Association 4
File used by Ratfor, a preprocessor for the FORTAN programming language; contains regular FORTRAN source code as well as Ratfor statements that can be translated into FORTAN source code before they are compiled by a FORTRAN compiler.
Ratfor source code allows developers to use a wider syntax than the syntax supported by the FORTRAN compiler. For example, Ratfor allows the specification of C-like control flow constructs such as if-else, switch, while, and for.
NOTE: Ratfor is distributed in a source code format.
File Type 5Right Audio Channel File
.R File Association 5
Audio file containing the right channel of an audio track; often exported by audio production programs, such as Digital Performer (Mac) and Cubase (Mac and Windows).