determine when an R base function was added [duplicate] - r

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.

Related

similar to SAS where we have macro variable syslast which return the last created dataframe , do we have a similar thing in r [duplicate]

This question already has an answer here:
How to assign the result of the previous expression to a variable?
(1 answer)
Closed 19 days ago.
Similar to SAS where we have system macro variable syslast which returns the last created dataframe, do we have a similar thing in r
You can access the most recent returned value using .Last.value

Error: could not find function "%||%" (percent pipe pipe percent) [duplicate]

This question already has an answer here:
How to find the package name in R for a specific function?
(1 answer)
Closed 2 years ago.
Due to the characters, I'm having a hard time googling for which package the %||% function comes from.
I have tried googling the string literal, as well as 'percent bar bar percent' and similar.
It is present in rlang package. See
?rlang::`%||%`
It behaves like dplyr::coalesce but for NULL values instead of NAs.

Is there a function in R that reproduce the squeeze function of Matlab? [duplicate]

This question already has an answer here:
R: Efficiently remove singleton dimensions from array
(1 answer)
Closed 5 years ago.
I'm looking for a function in R that reproduce exactly what the squeeze function of Matlab does. Does anybody know it?
(I'd have thought that it would have been incumbent on an asker to explain what squeeze actually does -- drops singleton dimensions.)
See the help on the drop function in R; this also drops singleton dimensions.

Shortcut for %>% in RStudio? [duplicate]

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/

How to see all methods, objects, dataframse, etc of a package in R? [duplicate]

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')

Resources