youdaoLookUp: The most important function in this package.

Description Usage Arguments Author(s) Examples

Description

You can use your word, API key and keyfrom in this function to get query result directly. That is to say, other functions are included in this function.

Usage

1
youdaoLookUp(word, api, keyfrom)

Arguments

word

The word you want to look up.

api

A Youdao API key. You can get it from http://fanyi.youdao.com/openapi.

keyfrom

A Youdao keyfrom. You can get it from http://fanyi.youdao.com/openapi.

Author(s)

Ke-Hao Wu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	library(RCurl)
	library(rjson)
	apikey = "498375134"
	keyfrom = "JustForTestYouDao"
	word = c("youdao", "China", "Homo Sapiens")
	for( i in word)
	{
		Res = youdaoLookUp(i,api=apikey,keyfrom=keyfrom)
		print(Res)
	}

RYoudaoTranslate documentation built on May 1, 2019, 8:41 p.m.