Re: [Rd] Possible Bug: file.exists() Function. Due to UTF-8 Encoding differences on Windows between R 4.0.1 and R 3.6.3?

2020-06-11 Thread Tomas Kalibera
Dear Juan, I don't see what is the problem from your report. Please try to create a minimal but complete reproducible example that does not use the renv package. Perhaps you could use the R debugger (e.g. via options(error=recover)) to find out what is the argument that file.exists() has be

[Rd] CRAN checks and ASAN

2020-06-11 Thread Therneau, Terry M., Ph.D. via R-devel
I have a version of R-devel on my development box that has the address sanitizer turned on.   This was instrumental in finding a pair of subtle memory issues.  (I had read, but never written, one element past the end of an array, which caused issues on some architectures.) 1. I now get a end

Re: [Rd] CRAN checks and ASAN

2020-06-11 Thread Prof Brian Ripley
On 11/06/2020 15:57, Therneau, Terry M., Ph.D. via R-devel wrote: I have a version of R-devel on my development box that has the address sanitizer turned on.   This was instrumental in finding a pair of subtle memory issues.  (I had read, but never written, one element past the end of an array,

[Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Wayne Oldford
Hello everyone I am not sure when this appeared (sometime post R 3.5.0 and after I switched to Mac OS Catalina). I do not think it happens on all platforms (e.g. seems to work on windows). But it seems that tkimage.create() no longer works on a Mac for all png files. (It does work for

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Peter Dalgaard
Happy enough for me on Mojave. On the off chance that you are picking up an old Tcl, do you see this? > tcl("info","tclversion") 8.6 -pd > On 11 Jun 2020, at 23:04 , Wayne Oldford wrote: > > Hello everyone > > I am not sure when this appeared > (sometime post R 3.5.0 and after I switched

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Wayne Oldford
Yes. I seem to be picking up 8.6 I should have noted that. Use to work for me too in Mojave. I have the sneaky feeling that Catalina is the problem. R. W. Oldford https://math.uwaterloo.ca/~rwoldfor From: Peter Dalgaard Sent: Thursday, June 11, 2020 5:56:15 P

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Fox, John
Dear Wayne and Peter, FWIW, I observe exactly the same problem in Catalina. The error and my session info: snip > tkimage.create("photo", file = fname) Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") : [tcl] encountered an unsupported criticial chunk ty

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Wayne Oldford
I don't know what has changed with Catalina But I just tried my tk console from the shell command tkcon And got the following error. Here is my shell: $ tkcon dyld: Library not loaded: /usr/local/lib:/opt/X11/lib/libtk8.6.dylib Referenced from: /usr/local/bin/wish Reason: image

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Simon Urbanek
Wayne, that one is unrelated, but interesting - you can fix it with sudo install_name_tool -change \ /usr/local/lib:/opt/X11/lib/libtk8.6.dylib \ /usr/local/lib/libtk8.6.dylib \ /usr/local/bin/wish8.6 There is a bug in tcltk with IDs on the libraries which I have worked-around for R, bu

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Simon Urbanek
Some googling suggests that this is an issue in tcltk which doesn't support png files with Exif tags. Are you sure this ever worked? This doesn't seem to be related to the macOS version since it's a feature tcltk, not the system. I had no issue using the png package, so you could simply remove a

Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

2020-06-11 Thread Fox, John
Dear Simon, > On Jun 11, 2020, at 9:00 PM, Simon Urbanek > wrote: > > Wayne, > > that one is unrelated, but interesting - you can fix it with > > sudo install_name_tool -change \ > /usr/local/lib:/opt/X11/lib/libtk8.6.dylib \ > /usr/local/lib/libtk8.6.dylib \ > /usr/local/bin/wish8.6 >