<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/rgedit/patches/" rel="alternate"/><link href="https://sourceforge.net/p/rgedit/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/rgedit/patches/</id><updated>2013-04-01T21:03:31Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Patch for a bug in .rgedit.lastline2clipboard()</title><link href="https://sourceforge.net/p/rgedit/patches/1/" rel="alternate"/><published>2013-04-01T21:03:31Z</published><updated>2013-04-01T21:03:31Z</updated><author><name>Robert Stojnic</name><uri>https://sourceforge.net/u/rainmansr/</uri></author><id>https://sourceforge.net0761c7d22048fa7d67f05de4029dc37023c24fc5</id><summary type="html">&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;</summary></entry></feed>