Skip to content
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

Add hover to function symbol formals #367

Merged
merged 3 commits into from
Jan 21, 2021

Conversation

renkun-ken
Copy link
Member

@renkun-ken renkun-ken commented Jan 20, 2021

This PR adds hover to function symbol formals so that it is easier to see the documentation of the function argument on hover, especially when the function has many arguments.

#' @param var1 test
#' @param var2 test2
#' @param var3 sum of test and test2
test <- function(var1 = 0, var2 = 1,
                 var3 = var1 + var2
) {
  var1
  var2
}

image

#' @param index number
res <- lapply(1:10, function(index) {
  index + 1
})

image

@randy3k
Copy link
Member

randy3k commented Jan 20, 2021

LGTM. Thank you for your continuous contribution. I am sorry that I didn’t much time to work on this project recently.

@renkun-ken renkun-ken merged commit 45d6264 into REditorSupport:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants