SerhiiP
☆

Ukraine,
2020-06-23 07:15
(256 d 19:08 ago)

Posting: # 21564
Views: 5,197

## Fail to install BEAR package for R [R for BE/BA]

Hello everyone!
I really wanted to try BEAR package, I had following this guide about it's installation https://sourceforge.net/projects/yjlee-r-packages/files/bear/
but i've got this problem:

package ‘cairoDevice’ successfully unpacked and MD5 sums checked The downloaded binary packages are in    C:\Users\123456\AppData\Local\Temp\RtmpKEbBNj\downloaded_packages Error in install.packages : cannot open the connection  Now checking installation error of package 'bear'...  failed to install 'gWidgets'  failed to install 'gWidgetsRGtk2'  failed to install 'bear'  -> Sorry, 'bear' is not successfully installed.

Can someone explain what is going on here?
Tried to restart everything,but still the same error occures

Windows 10, R 4.0.1, bear 2.8.8

help!
krish85
☆

India,
2020-06-29 03:32
(250 d 22:52 ago)

@ SerhiiP
Posting: # 21588
Views: 4,193

## Fail to install BEAR package for R

Hi,

I am also getting similar error while installing ivivc0.3.3.

 Now checking installation error of package 'ivivc'...  failed to install 'gWidgets'  failed to install 'gWidgetsRGtk2'  -> Sorry, 'ivivc' is not successfully installed.

May be, we are missing something....idk...
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-29 08:56
(250 d 17:27 ago)

@ krish85
Posting: # 21593
Views: 4,194

## Fail to install 'ivivc' package for R

Hi krish85

OK. But could you reveal more info (OS, error messages et al.) first about failing installation of BEAR (your subject title) or ivivc (your messages)? I will see if I can help.

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
krish85
☆

India,
2020-06-29 09:10
(250 d 17:13 ago)

@ yjlee168
Posting: # 21594
Views: 4,200

## Fail to install 'ivivc' package for R

» OK. But could you reveal more info (OS, error messages et al.) first about failing installation of BEAR (your subject title) or ivivc (your messages)? I will see if I can help.

I am using R 4.0.2 on windows 10. I have never installed bear or ivivc before. first i tried to instrall ivivic as per the instruction provided by you on
https://sourceforge.net/projects/yjlee-r-packages/files/bear/

so, i had kept preinst and ivivc_0.3.3.zip file in my wd and after starting r as admin, "source("preinst.r") and do("ivivc", "ivivc_0.3.3.zip"), started installing varios packages.. but then messege on r displayes as below.

If the following package installations fail, please browse http://forum.bebac.at/mix_entry.php?id=19734 for more info. Press Enter to continue i press enter and then package ‘ivivc’ successfully unpacked and MD5 sums checked Now checking installation error of package 'ivivc'... failed to install 'gWidgets' failed to install 'gWidgetsRGtk2' -> Sorry, 'ivivc' is not successfully installed.
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-29 09:30
(250 d 16:54 ago)

@ krish85
Posting: # 21595
Views: 4,169

## Fail to install 'ivivc' package for R

Hi krish85,

Try to run install.packages("RGkt2") under R console as system administrator. Then show me the error messages. Thanks.

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
krish85
☆

India,
2020-06-29 09:47
(250 d 16:36 ago)

@ yjlee168
Posting: # 21596
Views: 4,188

## Fail to install 'ivivc' package for R

» Try to run install.packages("RGkt2") under R console as system administrator. Then show me the error messages. Thanks.

I got this..

--- Please select a CRAN mirror for use in this session --- ( i select first one, cloud)
Warning message: package ‘RGkt2’ is not available (for R version 4.0.2)

Helmut
★★★

Vienna, Austria,
2020-06-29 10:49
(250 d 15:34 ago)

@ krish85
Posting: # 21597
Views: 4,178

## Fail to install 'ivivc' package for R

Hi krish85,

» --- Please select a CRAN mirror for use in this session --- ( i select first one, cloud)
» Warning message:
» package ‘RGkt2’ is not available (for R version 4.0.2)

Very strange. It was built under R4.0.0 though it should work with later releases. Download the Windows-binary from CRAN and install the package from the local zip-file.

Package: RGtk2 Version: 2.20.36 Title: R Bindings for Gtk 2.8.0 and Above Author: Michael Lawrence <[email protected]> and Duncan Temple Lang <[email protected]> Depends: R (>= 3.4.0) Imports: methods SystemRequirements: Cairo (>= 1.0.0), ATK (>= 1.10.0), Pango (>= 1.10.0), GTK+ (>= 2.8.0), GLib (>= 2.8.0) Maintainer: Michael Lawrence <[email protected]> Description: Facilities in the R language for programming   graphical interfaces using Gtk, the Gimp Tool Kit. License: GPL URL: http://www.ggobi.org/rgtk2, http://www.omegahat.net Encoding: UTF-8 NeedsCompilation: yes Packaged: 2019-03-03 23:20:52 UTC; larman Repository: CRAN Date/Publication: 2019-03-08 15:32:41 UTC Built: R 4.0.0; x86_64-w64-mingw32; 2020-04-26 13:30:29 UTC; windows Archs: i386, x64

Dif-tor heh smusma 🖖
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
zizou
★

Plzeň, Czech Republic,
2020-06-29 10:57
(250 d 15:26 ago)

@ yjlee168
Posting: # 21598
Views: 4,146

## Fail to install 'ivivc' package for R

» Try to run install.packages("RGkt2") under R console as system administrator. Then show me the error messages. Thanks.

Hi, try also install.packages("RGtk2").
Best regards, zizou
krish85
☆

India,
2020-06-29 11:20
(250 d 15:03 ago)

@ zizou
Posting: # 21599
Views: 4,147

## Fail to install 'ivivc' package for R

» Hi, try also install.packages("RGtk2").

ooops....its RGtk2....thanks...

--- Please select a CRAN mirror for use in this session --- trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.0/RGtk2_2.20.36.zip' Content type 'application/zip' length 16529627 bytes (15.8 MB) downloaded 15.8 MB package ‘RGtk2’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\Admin\AppData\Local\Temp\Rtmpy43zWs\downloaded_packages

there is no error/warning in this..

but again while installing, same error shows.

Now checking installation error of package 'ivivc'... failed to install 'gWidgets' failed to install 'gWidgetsRGtk2' -> Sorry, 'ivivc' is not successfully installed.

Helmut
★★★

Vienna, Austria,
2020-06-29 11:47
(250 d 14:36 ago)

@ krish85
Posting: # 21600
Views: 4,135

## Packages retired from CRAN

Hi krish85,

» Now checking installation error of package 'ivivc'...
» failed to install 'gWidgets'
»
» failed to install 'gWidgetsRGtk2'

These two packages were retired from CRAN (see here and there). After Jan 2019 their maintainer did not respond to update requests by CRAN. Brian Ripley made corrections in the last release (April 2020), built them under R4.0.0, and tagged them ORPHANED in the DESCRIPTION files. Now they are history.

To quote CRAN:

Orphaned packages have no active maintainer: they have    Maintainer: ORPHANED in their DESCRIPTON file. Orphaned packages remain in the main CRAN packages section as long as they pass "R CMD check" for the current release version of R. Everybody is more than welcome to take over as maintainer of an orphaned package. Simply download the package sources, make changes if necessary (respecting original author and license!) and resubmit the package to CRAN with your name as maintainer in the DESCRIPTION file of the package. Possible reasons for orphanizing a package:

1. The current maintainer actively wants to orphanize the package, e.g., due to no longer having time or interest to act as package maintainer. 
2. Emails sent to the current maintainer by the CRAN admins bounced, or were not answered for longer periods of time.

The current orphanizing process:

1. File PACKAGES.in in CRAN's src/contrib directory (the repository package metadata file) adds a Maintainer: ORPHANED override and an X-CRAN-Comment entry providing information about the original maintainer, and the date and reason for orphanizing. 
2. Package sources and binaries are updated on CRAN without increasing the version number. 
3. If the package cleanly passes R CMD check for the current release version of R, it remains in CRAN's src/contrib directory. Otherwise, it is moved to the Archive.

I think you have three options:
1. If you have the devtools and all dependent packages (a lot!), you can build the packages from their latest archived sources (gWidgets 0.0-54.2, gWidgetsRGtk2 0.0-86.1). Not something I would recommend an inexperienced RUser. See also the note at the end.
2. Install gWidgets2, gWidgets2RGtk2, and gWidgets2tcltk. These packages have the same maintainer as the retired packages. Try whether ivivc runs with them. If not:
3. Since the original GUI-packages are retired, it’s up to Yung-jin to deal with the problem (i.e., adapt his packages to work with the gWidgets*2 packages).
@Yung-jin:
• “The gWidgets2 package provides a programming interface for making graphical user interfaces within R. The package is a rewrite of the gWidgets package, introducing a few external changes but a significant number of internal ones.”
(my emphasis; sorry…)
Note:

The packages didn’t pass CRAN’s checks with­out error(s) on R4.0.1 (otherwise, there wouldn’t be a reason to archive them). Even if you succeed in building them from the sources, there is no guarantee to work as intended on your R4.0.2 installation.

Dif-tor heh smusma 🖖
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-29 14:21
(250 d 12:02 ago)

@ Helmut
Posting: # 21602
Views: 4,066

## Packages retired from CRAN

Dear Helmut,

» » failed to install 'gWidgets'
» » failed to install 'gWidgetsRGtk2'
»
» These two packages were retired from CRAN ...

I don't know that. Thank Helmut. I am totally doomed and the party is over now.

» ... Not something I would recommend an inexperienced RUser.

Haha~ still joking.

» ... Since the original GUI-packages are retired, it’s up to Yung-jin to deal with the problem (i.e., adapt his packages to work with the gWidgets*2 packages).

It's not retired. It was removed from CRAN since the author did not respond, though it still works well under R v4.0.x. Hopefully it will come back again soon. It happened before as far as I can remember.

» @Yung-jin: “The gWidgets2 package provides a programming interface for making graphical user interfaces within R. The package is a rewrite of the gWidgets package...

gWidgets2 is a disaster to me. It's not upgraded version of gWidgets at all. It's like an add-on to gWidgets. I have tried it and the GUI just looked messed up.

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
Helmut
★★★

Vienna, Austria,
2020-06-29 15:31
(250 d 10:52 ago)

@ yjlee168
Posting: # 21604
Views: 4,047

## Packages retired from CRAN

Hi Yung-jin,

» I am totally doomed and the party is over now.

Don’t Give Up

» » ... Since the original GUI-packages are retired, …
» It's not retired. It was removed from CRAN since the author did not respond,…

That’s the same thing.
Retired = archived = only old sources available on CRAN = bad luck for Users requiring binaries for their OS.

» … though it still works well under R v4.0.x.

I believe it. I have no problems with bear 2.8.8 under R4.0.2. However, there are errors in functions (or arguments) you don’t call in you packages.

» Hopefully it will come back again soon. It happened before as far as I can remember.

Only if the maintainer would do what the word implies. Fix the error(s) and re-submit. Since in this case the maintainer of gWidgets* and gWidgets*2 is the same person, the last version of the former was of January 2019 and the first one the latter submitted at the same time, chances are close to nil that he will exhume the former and take care about both in parallel.

» gWidgets2 is a disaster to me. It's not upgraded version of gWidgets at all. It's like an add-on to gWidgets. I have tried it and the GUI just looked messed up.

My knowledge about GUIs is close to zero. I think you have still some options:
1. Fix the errors and submit the packages as the new maintainer. Then it would mean back to the stressful life which was a reason why you don’t host your packages at CRAN for years.
2. As above but host binaries (for Windows and MacOS) and the source (for Linuxes) at your site.
3. Jump in at the deep end and adapt your code-base to gWidgets*2. Nasty first though not that bad on the long run.

PS: Cheer up! Two stories of this year:
• There was an error in package pbkrtest. CRAN’s Kurt Hornik repeatedly asked the maintainer for a fix with no reply. On Feb 19th maintainers of dependent packages were notified that ours will be archived on Mar 4th as well. Panic. E-mails to and fro, fixed on Feb 20th. What if the maintainer would have been on vacation?
• In the transition for R3.6.3 to R4.0.0 some tests of our package replicateBE suddenly failed and I was asked by CRAN for a fix. Why the heck? It turned out that the default singularity tolerance in package lme4 changed. Was a kind of scavenger hunt to figure that out.

Dif-tor heh smusma 🖖
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-29 21:18
(250 d 05:06 ago)

@ Helmut
Posting: # 21607
Views: 4,027

## Packages retired from CRAN

Dear Helmut,

» » … though it still works well under R v4.0.x.
»
» I believe it. I have no problems with bear 2.8.8 under R4.0.2. However, there are errors in functions (or arguments) you don’t call in you packages.

Good points. I just found that the source of package gWidgetRGtk2 cannot be compiled under R v4.0.2. However, the package of gWidgets can.

» » Hopefully it will come back again soon. It happened before as far as I can remember.
»
» Only if the maintainer would do what the word implies. Fix the error(s) and re-submit. Since in this case the maintainer of gWidgets* and gWidgets*2 is the same person

Correct. same author.

» ...
» Fix the errors and submit the packages as the new maintainer. Then it would mean back to the stressful life which was a reason why you don’t host your packages at CRAN for years.

right.

» As above but host binaries (for Windows and MacOS) and the source (for Linuxes) at your site.

I pick up this option for now.

» Jump in at the deep end and adapt your code-base to gWidgets*2. Nasty first though not that bad on the long run.

I am thinking tcltk since it's default GUI for R. Therefore, no extra driver is required. However, it just looks even more ugly than RGtk2 under Windows.

» Two stories of this year... What if the maintainer would have been on vacation?

Rule#1: no vacation for all R package developers!

» In the transition for R3.6.3 to R4.0.0 some tests of our package replicateBE...

really? Then I guess that it could be much more packages removed from CRAN since switching to R v4.0.0.

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
Helmut
★★★

Vienna, Austria,
2020-06-29 21:55
(250 d 04:29 ago)

@ yjlee168
Posting: # 21608
Views: 4,016

## Packages retired from CRAN

Hi Yung-jin,

» I am thinking tcltk since it's default GUI for R. Therefore, no extra driver is required. However, it just looks even more ugly than RGtk2 under Windows.

Beauty is in the eye of the beholder.

» » In the transition for R3.6.3 to R4.0.0 some tests of our package replicateBE...
»
» really? Then I guess that it could be much more packages removed from CRAN since switching to R v4.0.0.

Duno. On R-help and esp. R-pkg-devel there were some confused discussions. We were very happy that the default in data.frame() is since R4.0.0 StringsAsFactors = FALSE. However, it had side-effects. If a library reads data and requires factors in a model, the old default worked. The same code in R4.0.0 terminated with an error (have to either read with StringsAsFactors = TRUE or factorize later).

Since 4.0.2 was released just 16 days after 4.0.1 I wonder whether this is all which was changed under the hood. The name “Taking Off Again” is telling.

Dif-tor heh smusma 🖖
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-29 22:15
(250 d 04:09 ago)

@ Helmut
Posting: # 21610
Views: 4,009

## short life of R v4.0.1

Dear Helmut,

» ... Since 4.0.2 was released just 16 days after 4.0.1 I wonder whether this is all which was changed under the hood. The name “Taking Off Again” is telling.

It's also about the errors of tcltk. Here are the quotes of e-mails from [email protected].

Dear Peter, Thank you very much for this. To clarify slightly, the bug affects not just the Rcmdr package but use of the tcltk package on Windows more generally. Best,  John   -----------------------------   John Fox, Professor Emeritus   McMaster University   Hamilton, Ontario, Canada   Web: http::/socserv.mcmaster.ca/jfox > On Jun 9, 2020, at 5:28 PM, Peter Dalgaard via R-help <[email protected]> wrote: > > Unfortunatly, a memory allocation bug prevented the R Commander package from working on Windows. This is fixed in R-patched, but we cannot have this not working in the official release when IT departments start installing for the Fall semester, so we need to issue a new release. > > Full schedule is available on developer.r-project.org. > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Office: A 4.23 > Email: [email protected]  Priv: [email protected]

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
Helmut
★★★

Vienna, Austria,
2020-06-30 10:40
(249 d 15:43 ago)

@ yjlee168
Posting: # 21616
Views: 3,919

## stringsAsFactors (again)

Hi Yung-jin,

» Here are the quotes of e-mails from [email protected]. […]

Not only this one…

Coming back to stringsAsFactors. A history by Kurt Hornik. The Developer Blog is interesting to get insights about ‘hidden gems’.

Dif-tor heh smusma 🖖
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-30 23:33
(249 d 02:50 ago)

@ Helmut
Posting: # 21625
Views: 3,871

## list of removed R packages as requires 'gWidgets' or 'gWidgetsRGtk2' from CRAN

Dear all

I just Googled around and found the following R packages were also retired/removed/archived (n = 24) together with gWidgets & gWidgetsRGtk2 (not include gWidgetstcltk) from CRAN.
 removed R packages        archived on ------------------------------------- SeqGrapheR                2020-05-20 stacomiR                  2020-05-20 CONS                      2020-05-20 ProgGUIinR                2020-04-30 WMCapacity                2020-05-20 reshapeGUI                2020-05-20 fit4NM                    2020-05-20 pcrsim                    2020-05-20 BAYESDEF                  2020-05-20 AtelieR                   2020-06-04 MissingDataGUI            2020-06-04 PKgraph                   2020-06-04 DCM                       2020-05-20 GrammR                    2020-05-20 MetSizeR                  2020-05-20 NPMOD                     2020-05-20 QVM                       2020-05-20 RQDA                      2020-05-20 Ricetl                    2020-05-20 RunuranGUI                2020-05-20 cppcor                    2020-05-20 melviewr                  2020-05-20 pcrsim                    2020-05-20 plfMA                     2020-05-20 ------------------------------------- midrangeMCP               2020-05-20 (and Unarchived/Unorphaned on 2020-06-23)

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-29 21:57
(250 d 04:26 ago)

@ krish85
Posting: # 21609
Views: 4,050

## solutions for installation 'ivivc'

Hi krish85,

» » Hi, try also install.packages("RGtk2").

Thank @zizou. That's correct. My fault.

Here are solutions:
gWidgets (Windows, binary, v0.0-54.2) & gWidgetsRGtk2 (Windows, binary, v0.0-86.1). And place both zip files under your working directory. Please do not unzip these two zip files;

2. open R console as the system administrator. Type
install.packages("gWidgets.zip", repos=NULL)
install.packages("gWidgetsRGtk2.zip", repos=NULL)

3. close R console and re-open R console as the system administrator again. Then type library(RGtk2). This will pop-up a dialogue asking if install GTK+ driver. Click "install GTK+ driver." Then close R console.

4. finally you can install ivivc for R now. Open R console and type install.packages("ivivc_0.3.3.zip", repos=NULL)
It should work now. Sorry for the delay of these messages.

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
krish85
☆

India,
2020-06-30 08:15
(249 d 18:08 ago)

@ yjlee168
Posting: # 21613
Views: 3,945

## solutions for installation 'ivivc'

Hi Yung-jin,

Now it worked !!!!!!!

Thank you so much for support and assistance !!
yjlee168
★★★

Kaohsiung, Taiwan,
2020-06-30 12:24
(249 d 13:59 ago)

@ krish85
Posting: # 21619
Views: 3,900

## solutions for installation 'ivivc'

Hi krish85,

Great to hear that. And very sorry about forgetting to turn on the function of 'file sharing' for both files.

All the best,
-- Yung-jin Lee
bear v2.8.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear