<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/rgedit/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/rgedit/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 01 Apr 2013 21:03:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/rgedit/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Patch for a bug in .rgedit.lastline2clipboard()</title><link>https://sourceforge.net/p/rgedit/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When any of xclip, xsel or pbcopy are missing the line #39 in .rgedit.lastline2clipboard() throws an R error. Since the default values of available.clipboard.commands are already at FALSE the simplest way to solve this bug is to enclose the offending line in a try() block so that the value is changed to TRUE only if the command succeeds:&lt;/p&gt;
&lt;p&gt;try({&lt;br /&gt;
available.clipboard.commands[i] &amp;lt;- length(system( paste( "command -v ", names(available.clipboard.commands)[i], sep=""), intern=TRUE )) &amp;gt; 0;&lt;br /&gt;
}, silent=TRUE);&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Stojnic</dc:creator><pubDate>Mon, 01 Apr 2013 21:03:31 -0000</pubDate><guid>https://sourceforge.net0761c7d22048fa7d67f05de4029dc37023c24fc5</guid></item></channel></rss>