Bioequivalence and Bioavailability Forum 13:27 CET

Main page Policy/Terms of Use Abbreviations Latest Posts

 Log in |  Register |  Search

install GTK+ driver for bear [R for BE/BA]

posted by yjlee168 Homepage - Kaohsiung, Taiwan, 2019-01-06 07:23  - Posting: # 19734
Views: 276

Dear John,

Nope, you don't need msys2 to install GTK+ driver. It can be easier.
  1. Windows OS: you should run source("preinst.r") first under R console. This installs all required R packages for bear. Then type library(bear) (Enter), followed by go(). There is a pop-up dialogue asking if you want to install GTK+ driver. Click 'Yes, to install GTK+ driver' menu. It's done. You only need to do this step once. After these steps, you can install bear packages from the menu of R console (install packages from a local zip file.)
  2. macOS: you will need to Homebrew GTK+ driver first before running source("preinst.r"). You should have Homebrew installed on your macOS first. To install Homebrew, under the terminal program, type and run /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    (use copy-and-paste to avoid typo here; or you can google it about how to install Homebrew.) Then same in the terminal program, type and run brew install gtk+ cairo pkg-config. Sit and wait for a while. After it finishes, you can run source("preinst.r") under R console now. Unlike Windows OS, there will be no pop-up dialogue since you have already installed GTK+ driver on your macOS.Now you can install bear package now.
  3. linux PC distros: the procedures are pretty same as macOS, it means that you need to install GTK+ driver first before source("preinst.r"). Here I just mention Ubuntu distro. Under the terminal program, type sudo apt-get install -y libgtk2.0-dev. Then you can run source("preinst.r") under R console now. Finally you can install bear package now. The names of GTK+ driver may differ a little bit with other distros. Let me know if you use Fedora or archlinux distros.
Hope this can help.

» [...]» Was I getting the correct GTK?

All the best,
---Yung-jin Lee
bear v2.8.3-2:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear
Download link (updated) -> here

Complete thread:

Activity
 Mix view
Bioequivalence and Bioavailability Forum |  Admin contact
19,032 posts in 4,059 threads, 1,299 registered users;
online 20 (1 registered, 19 guests [including 8 identified bots]).

When a distinguished but elderly scientist states that
something is possible, he is almost certainly right.
When he states that something is impossible,
he is very probably wrong.    Arthur C. Clarke

The BIOEQUIVALENCE / BIOAVAILABILITY FORUM is hosted by
BEBAC Ing. Helmut Schütz
HTML5 RSS Feed