an old itch when running RGtk2 (GUI) with macOS [R for BE/BA]

posted by yjlee168 Homepage – Kaohsiung, Taiwan, 2019-07-08 11:14  – Posting: # 20379
Views: 597

Dear all,

This has been an old problem and I used to leave it as it was. The problem is when we try to retrieve a input data file with gfile() function from RGtk2, I usually get the error message as follows:(R:351): Gtk-WARNING **: 10:28:58.039: Attempting to read the recently used resources file at `/Users/username/.local/share/recently-used.xbel', but the parser failed: Failed to open file “/Users/username/.local/share/recently-used.xbel”: Permission denied. where username is your login name, of course. It does not matter at all because the package still can read the input file correctly. However, it just make me itch for a long time. Recently, I solve the puzzle.

It can be easily fixed with a terminal and type
   mkdir /Users/username/.local /Users/username/.local/share.

Please do not use
   sudo mkdir /Users/username/.local /Users/username/.local/share

unless you run R with sudo R every time; otherwise you still get "... Permission denied". When I asked Google master several years ago, some nice people always suggested that we should use sudo mkdir /Users/username/.local /Users/username/.local/share to fix this problem. However, I still got ".... Permissions denied." That's because I did not use sudo R, instead of just R to run R. If you get this error messages, just fix it and do not let itch keeps bothering you. And this only occurs with macOS.

All the best,
-- Yung-jin Lee
bear v2.8.6:- 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,780 posts in 4,196 threads, 1,358 registered users;
online 10 (0 registered, 10 guests [including 6 identified bots]).
Forum time (Europe/Vienna): 18:37 CEST

If you obey all the rules,
you will miss all the fun.    Katharine Hepburn

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