Skip to content

Add hover to function symbol formals#367

Merged
renkun-ken merged 3 commits intoREditorSupport:masterfrom
renkun-ken:hover-formals
Jan 21, 2021
Merged

Add hover to function symbol formals#367
renkun-ken merged 3 commits intoREditorSupport:masterfrom
renkun-ken:hover-formals

Conversation

@renkun-ken
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants