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

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.

   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.9:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan http://pkpd.kmu.edu.tw/bear