Suffix file in R

Is there a file suffix convention in R?

I saw file.r and file.r

Is the suffix preferred when creating the file?

+6
source share
2 answers

Both Google and Wickhamite styles prefer .R (I agree with them), but there really is no standardized R style guide (i.e. equivalent to Python PEP8). This has led to several features . Generally speaking, I would say to go with .R .

+8
source

How from the Google R Style Guide :

 File names should end in .R and, of course, be meaningful. GOOD: predict_ad_revenue.R BAD: foo.R 

So .R is preferred.

+4
source

Source: https://habr.com/ru/post/978797/


All Articles