Warning message:
In GetNewWrd() :
RDCOMClient is not available. To install it use: install.packages('RDCOMClient', repos = 'http://www.omegahat.net/R/')
I ran the following command:
install.packages(RDCOMClient)
but I got this warning:
Installing package into ‘C:/Users/pedog/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘RDCOMClient’ is not available (for R version 3.6.1)
Hello, @andresrcs I have tried the advice and here is what I got:
install.packages('RDCOMClient', repos = 'http://www.omegahat.net/R/')
Installing package into ‘C:/Users/pedog/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository http://www.omegahat.net/R/bin/windows/contrib/3.6:
cannot open URL 'http://www.omegahat.net/R/bin/windows/contrib/3.6/PACKAGES'
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘RDCOMClient’
installing the source package ‘RDCOMClient’
trying URL 'http://www.omegahat.net/R/src/contrib/RDCOMClient_0.93-0.tar.gz'
Content type 'application/x-gzip' length 49509 bytes (48 KB)
downloaded 48 KB
* installing *source* package 'RDCOMClient' ...
** using staged installation
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I. -Wno-deprecated -O2 -Wall -mtune=generic -c COMError.cpp -o COMError.o
COMError.cpp:347:0: warning: "_countof" redefined
#define _countof(array) (sizeof(array)/sizeof(array[0]))
^
In file included from C:/Rtools/mingw_32/i686-w64-mingw32/include/combaseapi.h:129:0,
from C:/Rtools/mingw_32/i686-w64-mingw32/include/objbase.h:14,
from C:/Rtools/mingw_32/i686-w64-mingw32/include/ole2.h:17,
from C:/Rtools/mingw_32/i686-w64-mingw32/include/wtypes.h:12,
from C:/Rtools/mingw_32/i686-w64-mingw32/include/winscard.h:10,
from C:/Rtools/mingw_32/i686-w64-mingw32/include/windows.h:97,
from RCOMObject.h:23,
from COMError.cpp:1:
C:/Rtools/mingw_32/i686-w64-mingw32/include/stdlib.h:299:0: note: this is the location of the previous definition
#define _countof(_Array) sizeof(*__countof_helper(_Array))
^
In file included from COMError.cpp:1:0:
RCOMObject.h: In member function 'virtual ULONG RCOMObject::Release()':
RCOMObject.h:61:50: warning: deleting object of abstract class type 'RCOMObject' which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete this;
^
COMError.cpp: In function 'void GetScodeString(HRESULT, LPTSTR, int)':
COMError.cpp:371:39: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'HRESULT {aka long int}' [-Wformat=]
sprintf(buf, ("OLE error 0x%08x"), hr);
^
COMError.cpp: In function 'HRESULT checkErrorInfo(IUnknown*, HRESULT, SEXPREC**)':
COMError.cpp:409:51: warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'HRESULT {aka long int}' [-Wformat=]
fprintf(stderr, "<checkErrorInfo> %X \n", status);
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I. -O3 -Wall -std=gnu99 -mtune=generic -c RUtils.c -o RUtils.o
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I. -Wno-deprecated -O2 -Wall -mtune=generic -c connect.cpp -o connect.o
connect.cpp: In function 'HRESULT R_getCOMArgs(SEXP, DISPPARAMS*, DISPID*, int, int*)':
connect.cpp:405:10: warning: variable 'hr' set but not used [-Wunused-but-set-variable]
HRESULT hr;
^
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -D_GNU_ -DNO_PYCOM_IPROVIDECLASSINFO -I. -Wno-deprecated -O2 -Wall -mtune=generic -c converters.cpp -o converters.o
In file included from converters.cpp:1:0:
RCOMObject.h: In member function 'virtual ULONG RCOMObject::Release()':
RCOMObject.h:61:50: warning: deleting object of abstract class type 'RCOMObject' which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete this;
^
converters.cpp: In function 'SEXPREC* R_convertDCOMObjectToR(VARIANT*)':
converters.cpp:365:11: warning: variable 'hr' set but not used [-Wunused-but-set-variable]
HRESULT hr;
^
C:/Rtools/mingw_32/bin/g++ -shared -s -static-libgcc -o RDCOMClient.dll tmp.def COMError.o RUtils.o connect.o converters.o -lole32 -loleaut32 -luuid -LC:/PROGRA~1/R/R-36~1.1/bin/i386 -lR
COMError.o:COMError.cpp:(.text+0x2b3): undefined reference to `vtable for RCOMObject'
COMError.o:COMError.cpp:(.text+0x4c3): undefined reference to `vtable for RCOMObject'
COMError.o:COMError.cpp:(.text$_ZN10RCOMObject7ReleaseEv+0x19): undefined reference to `vtable for RCOMObject'
converters.o:converters.cpp:(.text+0x175d): undefined reference to `vtable for RCOMObject'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'RDCOMClient'
* removing 'C:/Users/pedog/Documents/R/win-library/3.6/RDCOMClient'
Warning in install.packages :
installation of package ‘RDCOMClient’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\pedog\AppData\Local\Temp\RtmpgBZEZs\downloaded_packages’
Loading required namespace: RDCOMClient
Failed with error: ‘there is no package called ‘RDCOMClient’’
Warning message:
In GetNewWrd() :
RDCOMClient is not available. To install it use: install.packages('RDCOMClient', repos = 'http://www.omegahat.net/R/')
Apparently it is not compatible yet with R >= 3.6 On github there is a fork from a user that claims to have solved the issue but the PR is not accepted yet, you can give it a try if you want
Hello @andresrcs I have tried it several times it seems it is not accessible.
devtools::install_github("dkyleward/RDCOMClient")
Error: Failed to install 'unknown package' from GitHub:
cannot open URL 'https://api.github.com/repos/dkyleward/RDCOMClient/contents/DESCRIPTION?ref=master'
> devtools::install_github("dkyleward/RDCOMClient")
Error: Failed to install 'unknown package' from GitHub:
cannot open URL 'https://api.github.com/repos/dkyleward/RDCOMClient/contents/DESCRIPTION?ref=master'
> devtools::install_github("dkyleward/RDCOMClient")
Error: Failed to install 'unknown package' from GitHub:
cannot open URL 'https://api.github.com/repos/dkyleward/RDCOMClient/contents/DESCRIPTION?ref=master'
That is weird, I can install it without a problem and I'm also working with R 3.6.1 on a windows machíne, you can try disabling https for package updates, other than that I'm out of ideas.