Re: [Rd] Could Rstd_Busy do something (src/unix/sys-std.c)?

2012-12-16 Thread Jakson Alves de Aquino
On Sun, Dec 16, 2012 at 12:49 AM, Simon Urbanek
 wrote:
> Note that you're not using the payload of the pipe at all, so you
> could simply just send a single byte (not that it matters but you
> don't need the 16-byte packets).
>
> Also you don't want to send anything if the signal is already
> enqueued, it's pointless to try to send more (you could clog the
> pipe), so simply use a flag that you set on write and reset it on
> read -- if that flag is set you don't write anything. That will make
> sure that you get only one trigger even if more signals arrived
> while R is busy.  Everything is synchronous here so no need to
> worry.
>
> Finally, I wouldn't mess with the signal all the time - just keep it
> active without touching it and use a flag to avoid re-entrance if
> you really think it's necessary.

Thanks for the additional suggestions. It's even better now:

void handle_winch(int sig){
if(fired)
return;
fired = 1;
char buf[16];
*buf = 0;
if(write(ofd, buf, 1) <= 0)
REprintf("setwidth error: write <= 0\n");
}

static void uih(void *data) {
char buf[16];
if(read(ifd, buf, 16) == 0)
REprintf("setwidth error: read = 0\n");
R_ToplevelExec(setwidth_Set, NULL);
fired = 0;
}

Best,

Jakson

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Download R

2012-12-16 Thread Charlotte Maia
I use Fedora 10.
I need to update my computer's R version.
I apologise if this has come up before.

The Debian and Ubuntu download links appear reasonably up to date.
The Suse download links appear almost up to date.
Unfortunately, the Fedora download links are from 2008/2009.

http://cran.r-project.org/bin/linux/

Should the Fedora links be removed or updated?

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Download R

2012-12-16 Thread Marc Schwartz
On Dec 16, 2012, at 8:05 PM, Charlotte Maia  wrote:

> I use Fedora 10.
> I need to update my computer's R version.
> I apologise if this has come up before.
> 
> The Debian and Ubuntu download links appear reasonably up to date.
> The Suse download links appear almost up to date.
> Unfortunately, the Fedora download links are from 2008/2009.
> 
> http://cran.r-project.org/bin/linux/
> 
> Should the Fedora links be removed or updated?



Fedora has, for several years now, offered R via the normal Fedora yum repos. 
Thus, the RPMs are no longer on CRAN. The same for RHEL via the EPEL.

That being said, I presume that you are aware that Fedora 10 was EOL'd back in 
late 2009. Thus, you have not had any bug fixes, patches, security updates, 
etc. for 3 years, which tends to obviate the reason for using Fedora, which is 
a bleeding edge Linux distribution.

Fedora only supports a given release for around 18 months and the current 
stable release is Fedora 17. I would advise you to upgrade your Fedora version. 
Once you have, you can use:

  yum install R

from the CLI as root to install R.

Also, there is a dedicated e-mail list for R on Fedora:

  https://stat.ethz.ch/mailman/listinfo/r-sig-fedora

Any subsequent questions you have about using R on Fedora should be posted 
there. General R questions should go to R-Help. More info in the Posting Guide:

  http://www.r-project.org/posting-guide.html

Regards,

Marc Schwartz

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Download R

2012-12-16 Thread Dirk Eddelbuettel

On 17 December 2012 at 15:05, Charlotte Maia wrote:
| I use Fedora 10.
| I need to update my computer's R version.
| I apologise if this has come up before.
| 
| The Debian and Ubuntu download links appear reasonably up to date.

Right :)

| The Suse download links appear almost up to date.
| Unfortunately, the Fedora download links are from 2008/2009.
| 
| http://cran.r-project.org/bin/linux/
| 
| Should the Fedora links be removed or updated?

There are some recent(-ish) R binaries in the EPEL repositories. I am not at
work now and hence cannot check, but I got a new rmp-based machines up to
speed a while back when I needed to.  

Not sure what to do about the CRAN docs though apart from pleading with
Martyn or whoever looks after the meta-information there.

Hth, Dirk

-- 
Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel