no more required & to install bear for R v4.0.x [R for BE/BA]

posted by yjlee168 Homepage – Kaohsiung, Taiwan, 2020-09-27 12:29 (206 d 02:55 ago) – Posting: # 21941
Views: 646

(edited by yjlee168 on 2020-09-27 15:16)

Dear all bear users,

To make it quick, please do not request for & from me any more (see this). I have already received tons of requests since these two packages (gWidgets & gWidgetsRGtk2) have been orphaned/removed/retired/depredicated from R repositories. I know some users were not trying to install bear. They only need to install gWidgets & gWidgetsRGtk2 to run other packages. Google master pointed this Forum to them. Therefore, users can download preinst.r from SourceForge and run it AS the system administrator (for Windows OS & Linux-PC). However (there is always a 'however' or 'but'), it is only for x64 platforms. Sorry for x86 machines (who is still using a x86 machine right now?).

Here is the long story. Since it was reported that gWidgets & gWidgetsRGtk2 has been removed from R repositories (see this, and this and this), the disaster began. I did a little stats. about what R packages was affetced/removed together with gWIdgets & gWidgetsRGtk2. One of packages, RQDA, was also included and users tried seek out the solution for it. I found that the only problem was that only gWidgetsRGtk2 cannot be built from its source tarball on my Windows 10 (x64) only.(three onlys in this sentence.) Both gWidgets & gWidgetsRGtk2 can be built on macOS and Linux-PC from their source. Even gWidgets can be built on Windows 10 (x64). The error messages [in English] of gWidgetsRGtk2 on Windows 10 were
... Error in inDL(x, as.logical(local), as.logical(now), ...) :
   unable to load shared object
   LoadLibrary failure:  The specified module could not be found.

That meant R tried to build both x86 and x64 packages at the same time as default, even though for x64 platforms/machine. Please note that the dynamic lib. for i386 (.../library/RGtk2/libs/i386/RGtk2.dll) was there. But R just cannot find it when building the package. Then I googled these error messages and found it has been reported since 2011 by a user. The original error messages reported by that user were:
... Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object
LoadLibrary failure:  Das angegebene Modul wurde nicht gefunden.

About this issue, Professor Ripley said:"...It is Microsoft's error message, not ours." Then I planed to email Mr. Gates. Before doing that, I found a nice post about installation of a R package (tidyselect) on stackoverflow that totally inspired me. Therefore, the solution is as follows:
and.this<- ""

And it finally works. The key option of --no-multiarch here is used to build x64 package only. All these have been included in preinst.r now. Sorry to keep you waiting for a long,long time. My sincere apology.
[to be continued...]

All the best,
-- Yung-jin Lee
bear v2.9.0:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan
Download link (updated) -> here

Complete thread:

 Admin contact
21,419 posts in 4,475 threads, 1,510 registered users;
online 16 (0 registered, 16 guests [including 3 identified bots]).
Forum time: Wednesday 15:24 CEST (Europe/Vienna)

In the Middles Ages the lingua franca of science was Latin.
Nowadays the language of science is bad English.    Anonymous

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz