From luke-tierney at uiowa.edu  Sun May  1 14:12:55 2016
From: luke-tierney at uiowa.edu (Tierney, Luke)
Date: Sun, 1 May 2016 12:12:55 +0000
Subject: [Rd] Storage of byte code-compiled functions in sysdata.rda
In-Reply-To: <5725ED5B.20208@web.de>
References: <5725ED5B.20208@web.de>
Message-ID: <704D9B27-D7A7-4B46-A2F4-82E0582AC6B5@uiowa.edu>

Can you provide a complete reproducible example?

Sent from my iPhone

> On May 1, 2016, at 6:51 AM, Peter Ruckdeschel <peter.ruckdeschel at web.de> wrote:
> 
> Hi r-devels,
> 
> we are seeing a new problem with our packages RobAStRDA (just new on CRAN, thanks
> to Uwe and Kurt!) and RobExtremes (to be submitted).
> 
> It must be something recent with the way you internally treat/store byte-code compiled
> functions, as we have no problems with R-3.1.3, but do see an "Error in fct(x) : byte code
> version mismatch" with R-devel SVNrev r70532.
> 
> Background: 
> Starting from several x-y grids, in the sysdata.rda file of RobAStRDA, we store the results 
> of calls to approxfun/splinefun to these grids from within a session with pkg RobAStRDA 
> require()d.  From pkg RobExtremes we then call these interpolating functions by means of 
> a call (essentially) as:
> 
> getFromNamespace(".RMXE", ns = "RobAStRDA")[["GEVFamily"]][["fun.N"]][[1]](1.3)
> 
> upon which we get the announced "Error in fct(x) : byte code version mismatch" while the same 
> code does work for R-3.1.3.
> 
> The list element "fun.N" in the above call already accounts for a different behaviour for
> pre R-3.0.0 (would have given "fun.O") and post R-3.0.0 ("fun.N") results of approxfun/
> splinefun, but the interpolating functions in branch "fun.N" have been produced in
> R-devel SVNrev r70532, so we would have expected our code getFromNamespace(.....) above to 
> work in R-devel as well.
> 
> Could you give us any hints how to
> 
> (a) store the interpolating functions resulting from approxfun/splinefun in pkg RobAStRDA
>    correctly in recent R-versions and
> (b) call these functions in pkg RobExtremes ?
> 
> We already did import stats::approxfun and stats::splinefun into the NAMESPACEs of pkgs
> RobAStRDA and RobExtremes.
> 
> Thanks for your help already,
> Peter
> 
> 
> ---
> Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft.
> https://www.avast.com/antivirus
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Storage of byte code-compiled functions in sysdata.rda
Tierney, Luke