Closed armelbrizuela closed 7 months ago
I see here 2 different issues:
1) ✔️ Installation issue. The instructions are given in these 2 places:
https://andrisignorell.github.io/DescTools/#ms-office
Did you study these, @armelbrizuela? I tried both binary for R4.0 and source that requires RTools: They both work.
The only thing that could be mentioned, is that for the source version RTools are needed.
2) ❗ Issue to use the function. Here it is quite strange, as it does not work out of the box and without @armelbrizuela's instructions I would not know how to make things work:
@AndriSignorell, maybe syntax `package::function()` in an appropriate place would solve the issue?
3) ❗ Issue in how the data are shown in Excel. Not reported by @armelbrizuela, as, most probably, he uses different language settings. I see data like this (as if a text file is saved with parameters sep = ";", dec = "."):
![image](https://github.com/AndriSignorell/DescTools/assets/12725868/879857fe-afee-46ef-926c-822a7587f6c6)
createCOMReference()
if I run library(RDCOMClient)
before calling XLView()
.
When I run
XLView(iris)
, I get the following error:Loading required namespace: RDCOMClient Failed with error: ‘there is no package called ‘RDCOMClient’’ Error in owb$Open(fn) : attempt to apply non-function In addition: Warning message: In GetCOMAppHandle("Excel.Application", option = "lastXL", existing = FALSE, : RDCOMClient is not available. To install it use: install.packages('RDCOMClient', repos = 'http://www.stats.ox.ac.uk/pub/RWin/')
I tried to install RDCOMClient with
install.packages('RDCOMClient', repos = 'http://www.stats.ox.ac.uk/pub/RWin/')
, but the following error poped up:Installing package into ‘C:/Users/armel/AppData/Local/R/win-library/4.3’ (as ‘lib’ is unspecified) Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.3: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.3/PACKAGES' Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘RDCOMClient’
I found another repository (https://github.com/omegahat/RDCOMClient). Here the maintainer says that in order to install RDCOMClient it is necessary to run
devtools::install_github("omegahat/RDCOMClient")
. So, before running that it is necessary to install RTools to compile RDCOMClient. Finally, I runXLView(iris)
and another error says that could not findcreateCOMReference()
. The next step was to runrequire(RDCOMClient)
and againXLView(iris)
.At the end I could open iris in Excel, but I think it would be nice if it were easier to install RDCOMClient.