[R] Bug with writeClipboard in {utils}

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Thu Jun 20 17:39:34 CEST 2024


В Thu, 20 Jun 2024 13:21:38 +0000
Barthelemy Tanguy <tanguy.barthelemy using insee.fr> пишет:

> Is there a way to test this patch or will there soon be a published
> patched R version available for download?

Not directly. If you're willing to follow the partially manual process
yourself, the instructions at [1] describe how to download R-devel and
compile the program. It's not spelled out anywhere how to apply patches
(some work is in progress at [2]), so feel free to ask additional
questions about `svn patch` if you would like to go this way.

Alternatively, taking a patch and submitting it as a pull request to
https://github.com/r-devel/r-svn will result in several checks being
run on it, one of which builds an R installer (e.g. see the artifacts
at [3]).

The remaining option is to wait for the bug to be fixed. Allocating
enough space for the terminator is probably necessary, but the R
developers may also decide to make readClipboard() more robust against
missing terminators.

Some fixes can be backported to R-patched; snapshots of R-patched
compiled for Windows are available from CRAN. R-patched may eventually
become R-4.4.2. If not backported, the fix will appear in the next
version of R.

-- 
Best regards,
Ivan

[1]
https://cran.r-project.org/bin/windows/base/howto-R-devel.html#building-r-from-source-using-rtools44

[2]
https://github.com/r-devel/rdevguide/issues/170

[3]
https://github.com/r-devel/r-svn/actions/runs/8749727418



More information about the R-help mailing list