Last active
July 18, 2018 08:09
-
-
Save ymattu/358cd5a31c88a26e493e6841298fc301 to your computer and use it in GitHub Desktop.
jumanpp::jum_version()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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