Skip to content

Instantly share code, notes, and snippets.

@ymattu
Last active July 18, 2018 08:09
Show Gist options
  • Save ymattu/358cd5a31c88a26e493e6841298fc301 to your computer and use it in GitHub Desktop.
Save ymattu/358cd5a31c88a26e493e6841298fc301 to your computer and use it in GitHub Desktop.
jumanpp::jum_version()
jum_version <- function(){
p <- system("jumanpp -v", intern = TRUE)
if (str_detect(p, "command not found")) {
res <- "JUMAN++ is not be installed or we cannot find the path to JUMAN++"
}
res <- p %>% str_trim()
return(res)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment