Closed olegshirokikh closed 7 years ago
Say one has the f-n like this:
func <- function(enum = c("b", "d", "c")) { arg <- switch(match.arg(enum), a = 1L, b = 2L, c = 3L) }
Then the function signature and default args will pop up suggesting the use of the function:
Same thing but in R6 class method:
EnumClass <- R6Class("EnumClass", portable = FALSE, public = list( func = function(enum = c("b", "d", "c")) { arg <- switch(match.arg(enum), a = 1L, b = 2L, c = 3L) } ))
Is there any way to address this? Thanks
I think this would require some modifications to the RStudio IDE. cc: @kevinushey
This is a bug in RStudio.
Say one has the f-n like this:
Then the function signature and default args will pop up suggesting the use of the function:![image](https://cloud.githubusercontent.com/assets/8054506/11315060/0fad93b0-8fa1-11e5-92ed-742c74facb82.png)
Same thing but in R6 class method:
Is there any way to address this? Thanks