[R] problem(s) compiling RWinEdt

Evan Cooch ev@n@cooch @end|ng |rom gm@||@com
Mon Apr 22 16:44:51 CEST 2019


[Note: if this should go to one of the other R maillists, 
apologies...and let me know *which* other list...]


I use the WinEdt editor for ll my TeX work, and several years back, 
installed the RWinEdt package in R to allow me to use WinEdt as my R 
edtior as well. Worked, and continues to work, perfectly (currently 
using R 3.5.3, RWinEdt 2.0, and WinEdt 6 -- WinEdt 6 being way behind 
the current release 10.x, but newer version have no new features I felt 
compelled to get by upgrading).

However, with the likelihood I'll need to move some of my Windows 7 
machines -> Windows 10, I wondered about getting the WinEdt-RWinEdt 
combination working on a new machine. So, I built a Win 10 machine, 
clean install, and then did a base install of R 3.5.3 (nothing else 
beyond base). Installed latest RTools, and put it in the path (since 
there doesn't seem to be a Windows binary for RWinEdt). Fired up R with 
admin privileges, and then tried to install RWinEdt. Tried, but...failed 
miserably (console log of one attempt, below). Got the following compile 
failures -- replete with NameSpace errors, and a strange comment that 
RWinEdt is designed for the Windows RGui only (strange, since I *am* 
installing/compiling on a Windows machine).

Being curious, I then re-tried the same exercise using a clean Windows 7 
install. Same issue. Then, retried both, using WinEdt 6. Same issue.


So, there seems to be a problem with getting RWinEdt installed. For the 
moment, I'm not too fussed, since I have it working fine on my main work 
machines. However, if I need to setup a new machine in future (Win 7 or 
Win 10), I'd like to be able to do a 'fresh' install of R, WinEdt and 
RWinEdt.

Any suggestions?

Thanks...


-----<console log, below>-----------

--- Please select a CRAN mirror for use in this session ---
Package which is only available in source form, and may need
   compilation of C/C++/Fortran: ‘RWinEdt’
installing the source package ‘RWinEdt’

trying URL 'https://cran.mtu.edu/src/contrib/RWinEdt_2.0-6.tar.gz'
Content type 'application/x-gzip' length 801476 bytes (782 KB)
downloaded 782 KB

* installing *source* package 'RWinEdt' ...
** package 'RWinEdt' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
c:/Rtools/mingw_32/bin/gcc  -I"C:/PROGRA~1/R/R-35~1.3/include" 
-DNDEBUG          -O3 -Wall  -std=gnu99 -mtune=generic -c ismdi.c -o ismdi.o
c:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o RWinEdt.dll 
tmp.def ismdi.o -lRgraphapp -LC:/PROGRA~1/R/R-35~1.3/bin/i386 -lR
installing to C:/Program Files/R/R-3.5.3/library/RWinEdt/libs/i386

*** arch - x64
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-35~1.3/include" 
-DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c ismdi.c -o ismdi.o
c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o RWinEdt.dll 
tmp.def ismdi.o -lRgraphapp -LC:/PROGRA~1/R/R-35~1.3/bin/x64 -lR
installing to C:/Program Files/R/R-3.5.3/library/RWinEdt/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
   converting help for package 'RWinEdt'
     finding HTML links ... done
     WinEdt                                  html
     ismdi                                   html
** building package indices
** installing vignettes
    'RWinEdt.Rnw'

** testing if installed package can be loaded
*** arch - i386
Error: package or namespace load failed for 'RWinEdt':
  .onAttach failed in attachNamespace() for 'RWinEdt', details:
   call: fun(libname, pkgname)
   error:
R-WinEdt is designed only for *RGui* on Windows!
Error: loading failed
Execution halted
*** arch - x64
Error: package or namespace load failed for 'RWinEdt':
  .onAttach failed in attachNamespace() for 'RWinEdt', details:
   call: fun(libname, pkgname)
   error:
R-WinEdt is designed only for *RGui* on Windows!
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Program Files/R/R-3.5.3/library/RWinEdt'
In R CMD INSTALL

The downloaded source packages are in
‘C:\Users\egc\AppData\Local\Temp\RtmpiYRr5e\downloaded_packages’
Warning message:
In install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
   installation of package ‘RWinEdt’ had non-zero exit status



More information about the R-help mailing list