整个代码是这样的
remove_HTML_markup=function(s)
tryCatch( {doc = htmlTreeParse ( paste ( "" , s )asText = TRUE,trim=FALSE),xmlValue(xmlRoot(doc))},error=function(s) s)
报错是这样的
错误: unexpected symbol in:
"remove_HTML_markup=function(s)
tryCatch( {doc = htmlTreeParse ( paste ( "" , s )asText"
感觉应该在asText前面加逗号,但是加了之后错误就这样了
错误: 意外的',' in:
"remove_HTML_markup=function(s)
tryCatch( {doc = htmlTreeParse ( paste ( "" , s ),asText = TRUE,trim=FALSE),"