这是显示问题的代码:
myPath = getwd()
cat("abcd", append = T, file =paste(myPath,"temp1.html", sep = "\")) # This is fine
cat("
", append = T, file =paste(myPath,"temp1.html", sep = "\")) # This is fine
cat("????", append = F, file =paste(myPath,"temp1.html", sep = "\")) # This text gets garbled when the html is opened using google chrome on windows 7.
cat("????", append = F, file =paste(myPath,"temp1.txt", sep = "\")) # but if I open this file in a text editor - the text looks fine
# The text in the HTML folder would look as if I where to run this in R:
(x
# But if I where to try and put it into the file, it wouldn't put anything in:
cat(x, append = T, file =paste(myPath,"temp1.html", sep = "\")) # empty
编辑:
我也尝试使用以下编码(未成功)
ff
cat("????", append = F, file =ff)
ff
cat("????", append = F, file =ff)
ff
cat("????", append = F, file =ff)
ff
cat("????", append = F, file =ff)
有什么建议么?谢谢.