Installing R-package: RDCOMCLIENT in R Studio 4.1.2 - Fatal Error

101 Views Asked by At

I'm trying to install the R package RDCOMCLIENT into R studio 4.1.2. I'm using R POSIT workbench to do this.

Here is the code I'm trying, which I found from here: https://github.com/omegahat/RDCOMClient/issues/36#issuecomment-1044657643

dir.create("/conf/linkage/output/fileLocation/pq_allocation/scripts/okay")

remotes::install_github("BSchamberger/RDCOMClient", ref = "main", lib = "/conf/linkage/output/fileLocation/pq_allocation/scripts/okay")

And I am met with the following error:


In file included from COMError.cpp:1:0:
RCOMObject.h:23:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~
compilation terminated.
make: *** [/opt/R/4.1.2/lib/R/etc/Makeconf:175: COMError.o] Error 1
ERROR: compilation failed for package ‘RDCOMClient’
* removing ‘/conf/linkage/output/fileLocation/pq_allocation/scripts/okay/RDCOMClient’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpoNQqvd/fileef484e587f/RDCOMClient_0.95-1.tar.gz’ had non-zero exit status

Could someone please help me with this? I need the RDCOMCLIENT to send out automated messages via outlook.

I tried the above code in order to install the R package RDCOMCLIENT. I was expecting the package to be installed.

It was not installed.

I have tried inputting 'windows.h' into the location to no avail.

0

There are 0 best solutions below