Re: [Rd] What is the best way to determine the version of an `.rds`?

2019-08-21 Thread Tomas Kalibera
Now infoRDS() reports all the meta-data from 
.Internal(serializeInfoFromConn()).


Best
Tomas

On 7/15/19 12:01 PM, Jennifer Bryan wrote:

Hi,

I am writing a test that consults the serialization version of an `.rds`
file.

An attractive way to get this is:

tools:::get_serialization_version() # reports just version

which calls

.Internal(serializeInfoFromConn() # reports much more

but neither is truly exported for public use.

Is there an official, exported way to get the serialization version? It is
possible to get this information with R code yourself, but it doesn't feel
very elegant.

If not, could we have this? It's pretty easy these days to acquire a
version 3 file, without real intent, which risks making the package require
R >= 3.5.

Thanks,
Jenny

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Fwd: Bug Reporting

2019-08-21 Thread Thierry Onkelinx via R-devel
Dear Tommaso,

This is not a bug. You asked for a difference of 1 day = 24 hours = 1440
minutes = 86400 seconds. And that is the difference you get.

> start <- as.POSIXct(strptime("20151025",format='%Y%m%d'))
> end <- start + as.difftime(1, unit="days")
> end - start
Time difference of 1 days
> as.integer(end) - as.integer(start)
[1] 86400

Best regards,

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkel...@inbo.be
Havenlaan 88 bus 73, 1000 Brussel
www.inbo.be

///
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
///




Op wo 21 aug. 2019 om 08:25 schreef TOMMASO ADAMI :

> Hello,
>
>   I would like to report this date/time bug that threatened me for a long
> time,
>as I need correct date calculation in my computations.
>
> If I add 1 day to the light saving switching day, it will incorrectly
> subtract 1 hour from the date and missalign all my calculations.
>
> You can see it runing (I am testing it with Rome, Italy (+1) TimeZone)
>
> print(paste0("Horrible R Bug is present?
> ",strptime("20151025",format='%Y%m%d')+as.difftime(1, unit="days")));
>
> As you can see the output says 11pm and not 12pm !
>
> I do not know if it is a requested feature, but for me is unpleasant and
> unexpected behaviour.
>
> Thank you very much!
>
> [[alternative HTML version deleted]]
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Is R-devel broken?

2019-08-21 Thread Iñaki Ucar
Hi,

I'm building r-devel using [1], and I see:

mv: './grid/vignettes/grid.Rnw-lattice' and
'./grid/vignettes/grid.Rnw' are the same file
make[1]: *** [Makefile:121: vignettes-no-lattice] Error 1

Regards,
Iñaki

[1] https://hub.docker.com/r/rocker/r-devel/dockerfile

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Is R-devel broken?

2019-08-21 Thread Iñaki Ucar
Don't mind. It seems to be a caching issue in the underlying
filesystem. Not sure how to solve it though.

Iñaki

On Wed, 21 Aug 2019 at 13:21, Iñaki Ucar  wrote:
>
> Hi,
>
> I'm building r-devel using [1], and I see:
>
> mv: './grid/vignettes/grid.Rnw-lattice' and
> './grid/vignettes/grid.Rnw' are the same file
> make[1]: *** [Makefile:121: vignettes-no-lattice] Error 1
>
> Regards,
> Iñaki
>
> [1] https://hub.docker.com/r/rocker/r-devel/dockerfile



-- 
Iñaki Úcar

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] --disable-long-double or --enable-long-double=no?

2019-08-21 Thread Michael Chirico
There's a bit of confusion about how to disable long double support in an R
build.

I see --disable-long-double scattered about, e.g.

   - R-exts:
   
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Writing-portable-packages
   - R-admin:
   https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Solaris
   - CRAN noLD check description:
   https://www.stats.ox.ac.uk/pub/bdr/noLD/README.txt
   - ?capabilities:
   https://stat.ethz.ch/R-manual/R-devel/library/base/html/capabilities.html

However, it's *missing* from ./config (cd r-source && grep
"disable-long-double" configure). Instead there appears to be some code
built around enable-long-double:

./configure:1808:  --enable-long-doubleuse long double type [yes]

./configure:24723:# Check whether --enable-long-double was given.

I see the option apparently introduced here in 2012 & the ambiguity is
immediate -- the commit mentions disable-long-double but builds
enable-long-double.

https://github.com/wch/r-source/commit/fb8e36f8be0aaf47a9c54c9effb219dae34f0e41

Could someone please help to clear the confusion?

Thanks
Michael Chirico

[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] --disable-long-double or --enable-long-double=no?

2019-08-21 Thread Tomas Kalibera


"--disable-long-double" is documented to work and works. 
"--enable-long-double=no" works as well.

Please refer to Autoconf documentation (section 15.3), 
"--disable-feature is equivalent to --enable-feature=no"

Best,
Tomas

On 8/21/19 2:40 PM, Michael Chirico wrote:
> There's a bit of confusion about how to disable long double support in an R
> build.
>
> I see --disable-long-double scattered about, e.g.
>
> - R-exts:
> 
> https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Writing-portable-packages
> - R-admin:
> https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Solaris
> - CRAN noLD check description:
> https://www.stats.ox.ac.uk/pub/bdr/noLD/README.txt
> - ?capabilities:
> https://stat.ethz.ch/R-manual/R-devel/library/base/html/capabilities.html
>
> However, it's *missing* from ./config (cd r-source && grep
> "disable-long-double" configure). Instead there appears to be some code
> built around enable-long-double:
>
> ./configure:1808:  --enable-long-doubleuse long double type [yes]
>
> ./configure:24723:# Check whether --enable-long-double was given.
>
> I see the option apparently introduced here in 2012 & the ambiguity is
> immediate -- the commit mentions disable-long-double but builds
> enable-long-double.
>
> https://github.com/wch/r-source/commit/fb8e36f8be0aaf47a9c54c9effb219dae34f0e41
>
> Could someone please help to clear the confusion?
>
> Thanks
> Michael Chirico
>
>   [[alternative HTML version deleted]]
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel