From rwo|d|ord @end|ng |rom uw@ter|oo@c@  Fri Jun 12 00:43:07 2020
From: rwo|d|ord @end|ng |rom uw@ter|oo@c@ (Wayne Oldford)
Date: Thu, 11 Jun 2020 22:43:07 +0000
Subject: [Rd] 
 tcltk image reading problem (on a mac?): [tcl] encountered an
 unsupported criticial chunk type "eXIf"
In-Reply-To: <274D88FD-B4E7-40E4-9814-24C5B70F858D@gmail.com>
References: <FEAE9DA5-8206-4025-BA52-790717E27455@contoso.com>,
 <274D88FD-B4E7-40E4-9814-24C5B70F858D@gmail.com>
Message-ID: <BN8PR05MB6321E2E5C596C22180D6E1C7FC800@BN8PR05MB6321.namprd05.prod.outlook.com>

Yes.
I seem to be picking up
<Tcl>  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 <pdalgd at gmail.com>
Sent: Thursday, June 11, 2020 5:56:15 PM
To: Wayne Oldford <rwoldford at uwaterloo.ca>
Cc: r-devel at r-project.org <r-devel at r-project.org>
Subject: Re: [Rd] tcltk image reading problem (on a mac?): [tcl] encountered an unsupported criticial chunk type "eXIf"

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")
<Tcl> 8.6


-pd

> On 11 Jun 2020, at 23:04 , Wayne Oldford <rwoldford at uwaterloo.ca> wrote:
>
> 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 *some* old png files I have on disk but I have not been able to determine what is different about the ones that work)
>
> Any help would be appreciated.
>
> - Wayne
>
>
> R.W. Oldford
> math.uwaterloo.ca/~rwoldfor
>
>
>
>
>> library(tcltk)
>
>> fname <- "Rplot.png"
>> png(filename = fname, width = 500, height = 500)
>> hist(rnorm(20))
>> dev.off()
>
>> tkimage.create("photo", file = fname)
>
> Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
>  [tcl] encountered an unsupported criticial chunk type "eXIf".
>
>
> ______________________________
>
>> R.version
>               _
> platform       x86_64-apple-darwin17.0
> arch           x86_64
> os             darwin17.0
> system         x86_64, darwin17.0
> status
> major          4
> minor          0.0
> year           2020
> month          04
> day            24
> svn rev        78286
> language       R
> version.string R version 4.0.0 (2020-04-24)
> nickname       Arbor Day
>
> ___________________________
>
> macOS Catalina V 10.15.5
>
> ___________________________________________________
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com










	[[alternative HTML version deleted]]



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