简体   繁体   English

如果我想升级一个 CRAN 存在的 R 包(从 0.2.0 到 0.2.1),我是否需要删除 R 包中的“CRAN-RELEASE”?

[英]If I want to upper version for a CRAN exist R package (from 0.2.0 to 0.2.1) , do I need to delete “CRAN-RELEASE” in R package?

I find that there is a CRAN-RELEASE file inside package after I first time release the package.我第一次发布包后发现包内有一个CRAN-RELEASE文件。

It said "This package was submitted to CRAN on 2020-07-25. Once it is accepted, delete this file and tag the release (commit ...)."它说“这个包已于 2020 年 7 月 25 日提交给 CRAN。一旦被接受,请删除此文件并标记发布(提交......)。”

Since I already has version 0.2.0 for the package on CRAN, but do need to release up-version later (eg 0.2.1) on CRAN, do I need to keep that CRAN-RELEASE file or should I delete it?由于我在 CRAN 上已经有 0.2.0 版本的包,但确实需要稍后在 CRAN 上发布更新版本(例如 0.2.1),我是否需要保留该CRAN-RELEASE文件还是应该删除它? Will it affect anything?会不会有什么影响?

Also, what is the second half sentence means "tag the release (commit ...)".另外,后半句是什么意思是“标记发布(提交...)”。 Is that means I need to do something such as这是否意味着我需要做一些诸如

在此处输入图片说明

I also wondered about the phrase "tag the release", but then I found section 20.7 of Wickham and Bryan's R-packages book, and it became clear.我也想知道“标记发布”这个短语,但后来我找到了 Wickham 和 Bryan 的 R-packages 书的第 20.7 节,它变得清晰起来。

For reference: there it says this (let's let a 'couple' mean 'three' ;-) )供参考:它说这个(让我们让一对“夫妇”的意思是“三个”;-))

Once your package has been accepted by CRAN, you have a couple of technical tasks to do:一旦你的包裹被 CRAN 接受,你有几个技术任务要做:

  • If you use GitHub, go to the repository release page.如果您使用 GitHub,请转到存储库发布页面。 Create a new release with tag version v1.2.3 (ie “v” followed by the version of your package).创建一个带有标签版本 v1.2.3 的新版本(即“v”后跟您的包版本)。 Copy and paste the contents of the relevant NEWS.md section into the release notes.将相关 NEWS.md 部分的内容复制并粘贴到发行说明中。
  • If you use git, but not GitHub, tag the release with git tag -a v1.2.3.如果您使用 git 而不是 GitHub,请使用 git tag -a v1.2.3 标记发布。
  • Add the .9000 suffix to the Version field in the DESCRIPTION to indicate that this is a development version.将 .9000 后缀添加到说明中的版本字段以指示这是一个开发版本。 Create a new heading in NEWS.md and commit the changes.在 NEWS.md 中创建一个新标题并提交更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM