Bioequivalence and Bioavailability Forum 12:48 CET

Main page Policy/Terms of Use Abbreviations Latest Posts

 Log in |  Register |  Search

yjlee168
Senior
avatar
Homepage
Kaohsiung, Taiwan,
2017-04-13 21:58
(edited by yjlee168 on 2017-04-14 08:00)

Posting: # 17237
Views: 5,780
 

 bear v2.7.8 released (GUI) [R for BE/BA]

Dear all,

I have uploaded bear v2.7.8 to SF. Please note that, if you like speed and menu-driven mode as bear v2.7.7, you do not need to upgrade to v2.7.8. The new release has a graphic user interface (GUI) for setup and data manipulation. So it is slower than the menu-driven mode under Windows (not too bad if running under Ubuntu/Linux and iMac OS X.) If you like to watch its demo video, you can find it on Youtube.

Installation
  1. Java installation: this step needs to be done first before all steps, if you have not installed any Java before. It is because we will install the package rChoiceDialogs and this package requires rJava.
    • Windows: go to Oracle to download JAVA, and select Java for consumers to continue and follow the steps.
    • iMac OS X: I really got confused when I worked with iMac OS X Sierra. What I did was to install Java obtained from Oracle first, this enabled the package rChoiceDialogs be installed successfully. Then I run bear and the terminal showed that I need to install Java and brought me to a web page to download it. After installing the second Java, it run OK. Unfortunately, I don't remember that web page. It should be no problem for iMac users to figure out.
    • Ubuntu/Linux: OpenJDK works well. Please go to browse this website for more details. Since I have Java installed on my system, I just do sudo R CMD javareconf and it works fine.
  2. GTK drivers (and related files for GUI toolkit): if you are the first time to install bear, you need to do this. Please go and browse my previous post.
  3. installations of required packages: only do this step after the above two steps have finished successfully. The fastest way is to download preinst.r from SF and place it in your R working directory. Finally, run it from R console/terminal by typing source("preinst.r") and select bear from the menu and type 0 to exist.
  4. Finally, you can install bear v2.7.8 now from a local zip file (Windows).

Major update logs
  1. used fread() from package data.table to load all csv data files now; fread() can recognize the file format of *.csv automatically.
  2. automatically saved manual selection of data points; no more ask users to save or not to save.
  3. fixed the errors of NCAplot(); thanks to Dr. Mahmoud Hassan Teaima (2016-07-28).
  4. added data check after loading from a csv file when doing NCA, like this, and probably this too.
  5. displayed plots on screen (device) again for Rgui/X11 or running with RStudio.
  6. added nonparametric statistics for Tmax for 2x2x2 crossover (please see this thread) as an optional selection. The output is like

     --- statistical analysis of Tmax ---

                                      90% CI     
      Z-value*  P-value*  PE (T-R)  Lower  Upper
         0.847     0.415      0.25 -0.250  0.750
    --------------------------------------------------
     *: Exact Wilcoxon-Mann-Whitney Test
     alternative hypothesis: true mu is not equal to 0
       -> Tmax has no statistical difference.
     refs: http://forum.bebac.at/mix_entry.php?id=5904

[image]

That's all. Sorry for this lengthy post and thanks for reading.

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
jag009
Hero

NJ,
2019-01-06 05:51

@ yjlee168
Posting: # 19733
Views: 280
 

 bear v2.7.8 released (GUI)

HI yjlee168,

How do I install GTK drivers? I looked around and found GTK+ download which requires me to install msys2? But then I got stuck inside msys2 because the following line could not be executed inside msys2 --> "pacman -S mingw-w64-x86_64-gtk3"

Was I getting the correct GTK?

Thanks
John
yjlee168
Senior
avatar
Homepage
Kaohsiung, Taiwan,
2019-01-06 07:23

@ jag009
Posting: # 19734
Views: 275
 

 install GTK+ driver for bear

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
jag009
Hero

NJ,
2019-01-07 01:06

@ yjlee168
Posting: # 19737
Views: 248
 

 install GTK+ driver for bear

Thank you. I will try again tonight.

John
yjlee168
Senior
avatar
Homepage
Kaohsiung, Taiwan,
2019-01-07 08:47

@ jag009
Posting: # 19738
Views: 229
 

 install GTK+ driver for bear

Hi John

I have tried to install GTK+ driver on Windows like what you did with no luck. It did not work at all. GTK+ driver on Windows seems provided by the developer (package gWidgets & gWidgets2) himself. It is kind of out of date (2014 or earlier?) and looks ugly a little bit when compared to that in Linux. But it works anyway.

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
Activity
 Thread view
Bioequivalence and Bioavailability Forum |  Admin contact
19,032 posts in 4,059 threads, 1,299 registered users;
online 16 (1 registered, 15 guests [including 11 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