在Rstdio使用的是3.5.1的64位R版本中遇到问题:The Perl script 'WriteXLS.pl' failed to run successfully.
首先使用
Sys.which("perl")
输出空串,表明未安装perl。
perl ""
安装上perl之后,运行又出现了:
Error in as.vector(x) : no method for coercing this S4 class to a vector
但是代码里并没有出现as.vector(x)的这个代码部分。