You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to insert ns() using the RStudio Addin and got this message: Your version of RStudio does not support modifyRange. This message is ultimately caused by hasFun <- rstudioapi::hasFun(fun) returning FALSE.
To Reproduce
Steps to reproduce the behavior:
Write a string of text that you want to put inside ns(). (i.e. "test-ns")
Inside RStudio, click Addins -> Put selected text into between ns()
Expected behavior
I'm expecting the addin to put ns() around my text (i.e. ns("test-ns"))
Describe the bug
I tried to insert
ns()
using the RStudio Addin and got this message:Your version of RStudio does not support modifyRange
. This message is ultimately caused by hasFun <- rstudioapi::hasFun(fun) returning FALSE.To Reproduce
Steps to reproduce the behavior:
ns()
. (i.e. "test-ns")Addins
->Put selected text into between ns()
Expected behavior
I'm expecting the addin to put
ns()
around my text (i.e. ns("test-ns"))Screenshots
session info
Additional context
Two things:
rstudioapi::hasFun("modifyRange")
returnedFALSE
inhasFun("modifyRange")
returnsFALSE
rstudio/rstudioapi#317, and discovered that it was an RStudio bug. From conversation with @kevinushey, we should use this function instead ofhasFun()
:The text was updated successfully, but these errors were encountered: