作为普通用户,为什么以及如何有效地测试 R 的 beta 发行版?

发布于 2024-10-04 19:39:10 字数 790 浏览 0 评论 0原文

这个问题的灵感来自于 Duncan Murdoch 在 r-devel 邮件列表上回应有关 Sweave 的错误报告时的评论:

这已在 R 补丁中修复。 (这会 已在 2.12.0 中修复(如果更多) 人们测试了测试版...)。

老实说,出于多种原因,我一直远离测试版(又名开发版),这些是我从更多人那里听到的原因:

  1. 我有点害怕它会 不知何故与我发生冲突 当前 R 分布。当我需要的时候 对于工作来说,必须定期修理它会造成损失 有时我无法向老板解释,
  2. 我不知道如何测试 高效。我认为我的每一次测试 可以想出已经 由开发团队运行。
  3. 我还是觉得很难弄清楚 当出现错误时,并且 当(大多数情况下)是我自己的时候 但据我了解,这将是对 R 社区的宝贵贡献,如果我能以某种方式将其融入我自己的工作中,

我也愿意做我的测试。我正在考虑保留测试版并通过它运行我的脚本并进行检查。保存构造的对象可以快速轻松地使用 all.equal() 来查看是否有问题。

有人对我如何以最小的努力和最大的效率帮助测试有更多/更好的想法吗?

我也想在我们部门多宣传一下这一点。除了“是时候回馈社区了”之外,还有其他充分的理由说明测试 Beta 版值得付出努力吗?我该如何反驳上面给出的论点?

编辑:

正如 Dirk Eddelbuettel 在评论中指出的那样,部分原因是防止 Windows 中的路径变量。我对此有一些想法,但也非常感谢有关如何实际组织计算机来测试 R-devel 版本的指导。

This question is inspired by the remark of Duncan Murdoch on the r-devel mailing list in response to a bug report about Sweave :

This is fixed in R-patched. (It would
have been fixed in 2.12.0 if more
people tested the betas...).

Honestly, I've stayed away from beta -aka development- versions for a number of reasons, and these are reasons I hear from more people :

  1. I am a bit horrified it would
    somehow cause conflicts with my
    current R distribution. As I need it
    for work, having to repair it regularly would be a loss of
    time I can't explain to my boss
  2. I wouldn't have a clue how to test
    efficiently. I reckon every test I
    could come up with has already been
    run by the development team.
  3. I still find it difficult to figure
    out when something is a bug, and
    when (most often) it is my own
    stupidity kicking in.

But as I understood, it would be a valuable contribution to the R community, and I'm willing to do my bit of the testing as well if I can fit it somehow into my own work. I was thinking of keeping the beta on the side and running my scripts through it as well as a checkup. Saving the constructed objects allows a quick and easy all.equal() to see if something is wrong.

Anybody some more/better ideas on how I could help testing with a minimum amount of effort and a maximum amount of efficiency?

I'd also like to promote this a bit more on our department as well. Apart from the "It's time to give back to the community", any other good reasons why testing betas is worth the effort? How can I counter the arguments given above?

Edit:

As Dirk Eddelbuettel pointed out in the comments, part of the deal is preventing the path variables in Windows. I have some ideas on that, but pointers on how to practically organize your computer for testing R-devel versions are greatly appreciated as well.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦幻的心爱 2024-10-11 19:39:10

我怕你误会了。一开始这可能并不简单或明显,所以也许这会有所帮助:

  • “修补”不是“测试版”。修补了 R 2.12.1。

  • 没有冲突。它在 2.12.0 中下降。

  • 它是一个单独的下载,并且是夜间构建可从此处获取< /a>.

  • 这不是 r-devel,而是 r-patched。

  • 作为用户,测试预发布版本也是我们的责任。因此,如果有的话,理想的情况是,您将安装 R 补丁 --- 以及 R-devel!

  • 测试可以像安装另一个版本一样简单,将其保留在路径之外,然后从脚本动态调整 PATH 和 R_HOME。测试意味着在的代码和数据上运行它,以防止在新代码发布后被错误困扰。

I fear you misunderstand. This may not be straightforward or obvious at first so maybe this helps:

  • "patched" is not "beta". Patched is what R 2.12.1 will be.

  • There is no conflict. It drops in for 2.12.0.

  • It is a separate download, and a nightly build available from here.

  • This is not r-devel but r-patched.

  • It is our duty as users to test pre-releases as well. So if anything, in an ideal word you would have R-patched installed --- as well as R-devel!

  • Testing can be as easy as installing another version, keeping it outside your path and then adjusting PATH and R_HOME dynamicaly from a script. Testing means running it on your code and data to prevent you from getting bitten by bugs once the new code is released.

埖埖迣鎅 2024-10-11 19:39:10

我不知道如何有效地进行测试。我认为我能想到的每一个测试都已经由开发团队运行过。

我仍然发现很难弄清楚什么时候某件事是一个错误,什么时候(大多数情况下)这是我自己的愚蠢行为。

问题是,软件不会(或不仅仅是)被开发人员使用。它将由可能根本没有编程知识的人使用(我一般来说,这对于 R 以及任何其他软件都有效)。

如果帮助或界面或软件构建的一般方式没有为您提供有关如何做某事的足够信息,那么,这可能不是一个错误,但它是可以改进的(并向开发人员指出) )。

另外,请记住,软件是由开发人员编写的。他们知道如何使用它,并且通常他们在测试它时会有偏见,主要是通过正确使用它来查看它是否给出了良好的结果,而不是“试图破坏它”。

通过以您自己的方式使用它(这可能是“不正确的”),您可以有效地运行可能逃脱开发人员的测试,只是因为他们没有考虑像您一样使用它。

I wouldn't have a clue how to test efficiently. I reckon every test I could come up with has already been run by the development team.

I still find it difficult to figure out when something is a bug, and when (most often) it is my own stupidity kicking in.

The problem is, software is not (or not only) going to be used by developers. It is going to be used by people that may not have programming knowledge at all (I'm speaking generally, this is valid for R as well as for any other software).

If the help or the interface or the general way the software is built do not give you enough informations on how to do something, well, that is maybe not a bug, but it is something that can be improved (and pointed out to the devs).

Also, remember that the developers wrote the software. They know how to use it and often they will be biased in testing it mainly by using it correctly and see if it gives the good result rather than by "trying to break it".

By using it in YOUR way (which may possibly be "uncorrect"), you are effectively running tests that maybe escaped the developers, just because they were not thinking of using it like you did.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文