I am not able to use excel.link package with R version 4.0.2 (2020-06-22) -- "Taking Off Again". The code below used to work on previous versions. Now it either creates an error or causes R/RStudio to abort.
What I am trying to do is open an excel workbook and insert a data.table in it.
ExcelPrint = function(rObject) {
library(excel.link)
myExcelProcess = COMCreate("Excel.Application")
xl.workbook.add()
excelRange = myExcelProcess[["ActiveSheet"]]$Range("A1:A1")
xl.write(rObject, excelRange, row.names = FALSE)
}
ExcelPrint(iris)