library(RDCOMClient) e <- COMCreate("Excel.Application") e <- NULL gc() # Check the task manager to see if the EXCEL.exe is still there.