Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R files in capital and lowercase. Difference?

Someone gave me some "R" files. Some of them are saved with a capital "R" extension, i.e. ".R", and some are saved with a lowercase extension, i.e. ".r".

I can open the lowercase ones fine, but the uppercase ones say that permission is denied?

My questions: - What is a way around this? I cannot contact him to get the original files. - What is the fundamental difference between saving in ".R" and ".r"?

Thanks.

like image 570
makansij Avatar asked May 25 '15 22:05

makansij


People also ask

Do capital letters matter in R?

Technically R is a function language with a very simple syntax. It is case sensitive, so A and a are different variables.

Should file types be capitalized?

Key Point: Use all lowercase, and separate words with hyphens. Make file and directory names lowercase. Use hyphens, not underscores, to separate words—for example, query-data. html .

How can you tell if a character is lowercase in R?

We can use str_detect function to check whether a single string or a vector of strings is in lowercase or uppercase.

How do I lowercase everything in R?

tolower() method in R programming is used to convert the uppercase letters of string to lowercase string. Return: Returns the lowercase string.


1 Answers

There should be no difference. If you are getting permission denied on reading any files, then you need to change the permissions so you can read them.

If you are on unix, you can use the following command assuming you own the files.

chmod u+r <filename>
like image 98
merlin2011 Avatar answered Oct 25 '22 11:10

merlin2011