R/ydict.R

Defines functions ydict

Documented in ydict

##' translate English to Chinese and Chinese to English, using youdao dictionary
##'
##' 
##' @title ydict
##' @param word input word
##' @return formatted outpuut queried from youdao
##' @author Guangchuang Yu
##' @references \url{https://github.com/TimothyYe/ydict}
##' @export
ydict <- function(word) {
    system(paste("ydict", word))
}
GuangchuangYu/clifun documentation built on May 6, 2019, 9 p.m.