Hi All,
I am trying to check if a specific R-package is installed or not and I am using these commands:
packages <- c("ggplot2")
a<-installed.packages()
packages<-a[,1]
is.element("boot", packages)
I get the output as TRUE
When I check for some fictitious package like tidyrrr
packages <- c("tidyrrr")
a<-installed.packages()
packages<-a[,1]
is.element("boot", packages)
I still get the same output TRUE. hence my question is:
How do I check to see if a specific package is installed or not?
Thanks
Raj