Re: [R-pkg-devel] data and load version 3

2020-06-29 Thread Jeff Newmiller
Your choice. Do you want to support people using older versions of R, or not?

On June 29, 2020 1:55:02 PM PDT, "Göran Broström"  wrote:
>I added two data sets (.rda) to my package eha, but when I build the
>new 
>version I get:
>
> WARNING: Added dependency on R >= 3.5.0 because serialized objects in 
>serialize/load version 3 cannot be read in older versions of R. 
>File(s) 
>containing such objects: ‘eha/data/swedeaths.rda’ 
>‘eha/data/swepop.rda’
>
>In DESCRIPTION I have 'Depends: R (>= 3.0.0)'
>
>After googling for a while (found nothing relevant in 'WRE'), I 
>understand that I have two options: (i) Change 'Depends' in DESCRIPTION
>
>as suggested, and (ii) using save with 'version = 2' for the new files.
>
>And, if I am recommended to choose (i), should I recreate the old data 
>files with 'version = 3'?
>
>My guess is go for (i) and version = 3 for all data files, but I feel 
>that I need advise.
>
>Thanks, Göran
>
>__
>R-package-devel@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-package-devel

-- 
Sent from my phone. Please excuse my brevity.

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


Re: [R-pkg-devel] data and load version 3

2020-06-29 Thread Uwe Ligges




On 29.06.2020 22:55, Göran Broström wrote:
I added two data sets (.rda) to my package eha, but when I build the new 
version I get:


  WARNING: Added dependency on R >= 3.5.0 because serialized objects in 
serialize/load version 3 cannot be read in older versions of R.  File(s) 
containing such objects: ‘eha/data/swedeaths.rda’  ‘eha/data/swepop.rda’


In DESCRIPTION I have 'Depends: R (>= 3.0.0)'

After googling for a while (found nothing relevant in 'WRE'), I 
understand that I have two options: (i) Change 'Depends' in DESCRIPTION 
as suggested, and (ii) using save with 'version = 2' for the new files.


And, if I am recommended to choose (i), should I recreate the old data 
files with 'version = 3'?


My guess is go for (i) and version = 3 for all data files, but I feel 
that I need advise.


You may use version 3 for all, but you can also have a mix and only use 
vesion 3 for the new files.


Best,
Uwe Ligges


Thanks, Göran

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


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


[R-pkg-devel] data and load version 3

2020-06-29 Thread Göran Broström
I added two data sets (.rda) to my package eha, but when I build the new 
version I get:


 WARNING: Added dependency on R >= 3.5.0 because serialized objects in 
serialize/load version 3 cannot be read in older versions of R.  File(s) 
containing such objects: ‘eha/data/swedeaths.rda’  ‘eha/data/swepop.rda’


In DESCRIPTION I have 'Depends: R (>= 3.0.0)'

After googling for a while (found nothing relevant in 'WRE'), I 
understand that I have two options: (i) Change 'Depends' in DESCRIPTION 
as suggested, and (ii) using save with 'version = 2' for the new files.


And, if I am recommended to choose (i), should I recreate the old data 
files with 'version = 3'?


My guess is go for (i) and version = 3 for all data files, but I feel 
that I need advise.


Thanks, Göran

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


[R-pkg-devel] How to refer to COPYRIGHTS and AUTHORS extra files in DESCRIPTION

2020-06-29 Thread git demont
Hi all,

I am developing a package called 'IFC'.
https://github.com/gitdemont/IFC/


Last submission (v0.0.7) was almost the final one to get it CRAN
https://github.com/gitdemont/IFC/tree/v0.0.7
It was manually checked and it should be accepted if I removed a dontrun
(that I unfortunately forgot).

For the next submission ( I hope it will be the good one ), in addition to
fixing the dontrun, I would like to include a small modification that was
not asked. I would like to avoid another round of submission/review by
introducing an issue that was not here. In DESCRIPTION of 'IFC', I am
inviting users to refer to files for copyrights and authorship. "See file
inst/COPYRIGHTS and file inst/AUTHORS for a list of copyright holders and
authors"

However, I am not sure whether I should say 'inst/COPYRIGHTS' and
'inst/AUTHORS' because these files are in the 'inst/' directory of the
built tar.gz, or if I should only refer to 'COPYRIGHTS' and 'AUTHORS'
(without inst/) because once installed these files will be at the root of
IFC library directory.
The same question olds for "Copyright: file inst/COPYRIGHTS".

In CRAN policies, one can read:
"Where copyrights are held by an entity other than the package authors,
this should preferably be indicated via ‘cph’ roles in the ‘Authors@R’
field, or using a ‘Copyright’ field (if necessary referring to an
inst/COPYRIGHTS file)."
In 'RcppMsgPack' for instance we have:
- in the description: "See the files 'COPYRIGHTS' and 'AUTHORS' for a full
list of copyright holders and contributors to 'msgpack-c'."
- in the copyrights: "inst/COPYRIGHTS".

Best,
Yohann

[[alternative HTML version deleted]]

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