Best,
Yutani
2022?7?27?(?) 15:08 Tomas Kalibera <tomas.kalibera at gmail.com>:
On 7/27/22 00:30, Hiroaki Yutani wrote:
> Hi,
>
> Recently I got the following email from the CRAN maintainer about my
> package, string2path[1].
>
> However, I do ensure the binary is the pinned version and verify
> hash matches with the embedded one in the DESCRIPTION [2][3]. In
> mismatch, the build fails. So, this mechanism should ensure that
> anyone) cannot change the version of the binary without actually
> resubmitting to CRAN.
Please see the policy cited. Ensuring that the download is of a fixed
version refers to the sources (which can be downloaded under the
conditions mentioned).
Downloading binaries are only a last resort option and requires the
agreement of the CRAN team in the first place.
> I believe this complies with the CRAN policy (except for not
> authorship and copyright). Is there anything I have to address
> do "ensure that the download is of a fixed version"? Any
My understanding from your email is you are ensuring a fixed version
download, and with most projects you could probably do even less
(simply
hardcode a URL which includes a specific version of the sources if
that
is stable for the project), but you are not downloading sources.
In either case, of course if there is anything unclear in an email
from
CRAN, you can simply respond to that and ask.
Best
Tomas
>
> The CRAN policy stipulates
>> "Where a package wishes to make use of a library not written
>> the package, the package installation should first look to see
>> already installed and if so is of a suitable version. In case
>> desirable to include the library sources in the package and
>> as part of package installation. If the sources are too large,
>> acceptable to download them as part of installation, but do
>> the download is of a fixed version rather than the latest. Only
>> last resort and with the agreement of the CRAN team should a
>> download pre-compiled software."
>>
>> and we have recently seen an instance of a rust-using package whose
>> check output changed because what it downloaded had changed.? CRAN
>> checking is not set up for that (for example, macOS checks are
>> only for each version).
>>
>> Whilst investigating, the Windows' maintainers found that
>> were being downloaded.? And subsequently I found that salso,
>> and ymd are downloading compiled code on Intel macOS.
>>
>> Also. make sure that the authorship and copyright of code you
>> (and hence include in the package) is clear from the
>> as required by the CRAN policy.
>>