Description Usage Arguments Details
This function will ignore any instances of lastn itself,
so that running lastn(2) after
x <- 1
lastn(1)
x <- x + 1
will result in x = 2, not x = 4 (because x
gets re-initialized to 1).
1 |
n |
numeric. The last |
verbose |
logical. Whether or not to display the lines getting
executed as a message. Default is |
eval |
logical. Whether to run the string of code that will be executed, or merely return the character containing its contents. |
There are also helper functions last1, last2, ...
last9 which call this function with n = 1, 2, ... 9
respectively.
Note: This function will also ignore past ed commands.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.