New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve support for \ff #94
Comments
I agree that to be consistent with its name the plugin's function “SendFunctionToR” should be able to send single line functions and functions assigned via
In fact, to be perfect, the SendFunctionToR function should be more sophisticated than that, and it should deal with
I'll replace the SendFunctionToR when I have a lot of spare time to rewrite it (may never happen), or when someone writes a patch improving it. In the meanwhile, we can let this issue open. Note: The default command to send a function to R Console is |
And that’s what I did as well, until fairly recently, but then I noticed that the arguments for using
Ah yeah, of course. I’ll see whether I can contribute a patch some time; my Vim script skills are quite poor, unfortunately. |
I particularly like the </kbd>rf command to load a function and jump to the next. However, there are two issues with Vim-R’s implementation which means that I cannot use the feature to its full strength:
{ … }
. Functions consisting of a single statement – e.g.id <- function (x) x
– are not supported. This is a shame, since{
s in R is unlike braces in C-like languages: they are literally just another R function which groups multiple expressions, and using single expressions unbraced is well in line with R’s functional philosophy.<-
, using=
does not work (the error message “The function assign operator <- was not found.” is displayed).Both of these things should be fixed, i.e.
=
.The text was updated successfully, but these errors were encountered: