This question already has answers here:
%>% key binding / keyboard shortcut in Rstudio
(5 answers)
Closed 5 years ago.
It's great in RStudio to have already a key short-cut for <-, which is ALT+-.
Wouldn't it be also great to have also a short-cut for %>%, which is possibly the second most frequent key sequence (after <-) that R programmers type?
Or maybe there is already one?
If you want to solve this in rstudio you can create an addin and reference a custom shortcut to your addin. Here is the reference page which will guide you through the process: https://rstudio.github.io/rstudioaddins/
Related
This question already has answers here:
Why aren't these various encodings allowing me to properly display Portuguese?
(2 answers)
Closed 1 year ago.
When I first wrote my script, letters such as 'ç' and 'ã - very commonly used in portuguese - were fine. So if I wrote, for example, the word 'vagão' in portuguese, that's how it would read it. But when I reopened the project with that script, it reads "vagão". How do I fix it?
You must be looking at encoding issues or conversion issues due to encoding on Windows(assuming that you're using windows). This might give you your answer.
This question already has answers here:
The R console is in my native language, how can I set R to English?
(6 answers)
How to change language settings in R
(18 answers)
Closed 4 years ago.
I am using R on Windows 8. If I run R in RStudio, the console gives me the error messages in German. For a variety of reasons, this is undesirable, and I want R to be English.
I found the very same problem here:
The R console is in my native language, how can I set R to English?
I did exactly as was suggested (changed "Language for non-Unicode programs" to English and rewrote the Rconsole file) but it didn't help.
Best regards
This question already has answers here:
Show names of everything in a package
(4 answers)
Closed 9 years ago.
My question is similar to this question and in fact, is answered there. But because it took me a lot effort to find the answer there. I preferred to create a new more organized one and answer it myself.Now the question is:
If I want to see all methods, dataframes, etc of a package that I only know its name, what should I do to access them very easily?
Just enter this code:
help(package='PACKAGENAME', help_type='html')
for example to see all you have in the R basic package, stats:
help(package='stats',help_type='html')
This question already has answers here:
Figure out what version of R a function was introduced in
(2 answers)
Closed 9 years ago.
Is there a way to determine rather easily when an R function was added (what version number). Take for instance when were:
paste0 and browseVignettes added?
I'm not really looking for when these were added but a way to see when they were added.
Converting my comment to an answer as requested:
You can use the news() function
news(grepl("paste0", Text))
Go here: http://cran.r-project.org/src/base/NEWS.html
paste0 was in 2.15.0 and browseVignettes was 2.13.0 but it doesn't seem to mention browseVignettes.
This question already has answers here:
Is there any standard logging package for R? [closed]
(7 answers)
Closed 8 years ago.
Which logging package would you recommend for R? I am aware there are several packages available but would like to know which one is considered the best. Specifically, here is what I am looking for:
multiple logging level
built-in support for rotating log file
fast (should not slow down too much existing code)
painless to setup (not too much boilerplate code)
For simple logging, evaluate ?sink