Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. R> any(grepl("RStudio", .libPaths()))
  2. [1] TRUE
  3. R>
  4. R>
  5.  
  6. > RStudio.version()
  7. [1] "0.96.316"
  8.  
  9. is.RStudio <- function(){
  10. if(!exists("RStudio.version"))return(FALSE)
  11. if(!is.function(RStudio.version))return(FALSE)
  12. return(TRUE)
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement