[R-pkg-devel] Example files for functions reading binary files
Uwe Ligges
||gge@ @end|ng |rom @t@t|@t|k@tu-dortmund@de
Mon Dec 4 09:18:39 CET 2023
On 03.12.2023 16:12, Josiah Parry wrote:
> Rafael,
>
> I believe the issue is that packages cannot include binary *executables.* If
> you have a binary file (such as a parquet file) in inst/extdata, I do not
> think that would be a problem. It would be a good idea to ensure that that
> file is small, though. I think downloading a file is a big no no to be ran
> on CRAN machines. I would personally advise against downloading anything.
Same from here:
meant are files containing executable code such as shared or statically
linked libraries, executables etc.
Binary data files are permitted.
Best,
Uwe Ligges
> On Sun, Dec 3, 2023 at 9:54 AM Rafael Ayala Hernandez <
> Rafael.AyalaHernandez using oist.jp> wrote:
>
>> ello,
>>
>> I have added some functions to read binary files in my asteRisk package.
>> The binary files that are read contain just arrays of coefficients and
>> metadata about these.
>>
>> I would like to provide a small file of these to be used in the examples
>> of the man page for the functions that read them. However, section 1.1 of
>> "Writing R Extensions” states that no binary files are accepted in
>> submissions to CRAN (https://cran.r-project.org/doc/manuals/R-exts.html)
>>
>> I was wondering if it would be acceptable to download the example file to
>> a temporary file in the example themselves (and in fact, also in unit
>> tests), and then read it from there?
>>
>> I could not find any statement against this in “Writing R Extensions”, but
>> I would like to confirm that this is OK to do before submitting an updated
>> version of the package to CRAN.
>>
>> Thanks a lot in advance
>>
>> Best wishes,
>>
>> Rafa
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list