[sage-support] Re: How to use R's untar in Sage?

2010-07-12 Thread kcrisman


On Jul 12, 10:57 pm, rickhg12hs  wrote:
> I've tried to use R's untar command a number of different ways from
> Sage's commandline interface and I am having trouble listing the
> contents of a LZMA compressed TAR file. Actually, I don't seem to get
> any desirable output from r.untar so I am thinking I'm not even close
> to using the correct syntax.

Syntax with R commands is not always obvious for optional keywords.
Can you give us the *exact* R command (with options) you are trying to
use?  Note the documentation:  "What options are supported will depend
on the ‘tar’ used. "  So it is possible that the R untar in question
on Sage behaves differently from a 'native' implementation.  But most
likely it is the use of options that is the problem.  Unfortunately I
can't remember offhand how I've used them in the past :( but perhaps
someone else will.

> If I have a LZMA compressed TAR file, how can I list/read it with Sage
> and/or r.untar in Sage?

If you are just trying to use R from within Sage, without integrating
it with the rest of Sage, you can also use r_console(), or use %r in
the notebook, and just do things that way.

- kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How to use R's untar in Sage?

2010-07-13 Thread rickhg12hs
Found the problem was with my system's tar command.  After specifying
tar="internal" (meaning that it uses R's builtin tar) everything
worked fine.

Thanks for your consideration though.

On Jul 12, 11:14 pm, kcrisman  wrote:
> On Jul 12, 10:57 pm, rickhg12hs  wrote:
>
> > I've tried to use R's untar command a number of different ways from
> > Sage's commandline interface and I am having trouble listing the
> > contents of a LZMA compressed TAR file. Actually, I don't seem to get
> > any desirable output from r.untar so I am thinking I'm not even close
> > to using the correct syntax.
>
> Syntax with R commands is not always obvious for optional keywords.
> Can you give us the *exact* R command (with options) you are trying to
> use?  Note the documentation:  "What options are supported will depend
> on the ‘tar’ used. "  So it is possible that the R untar in question
> on Sage behaves differently from a 'native' implementation.  But most
> likely it is the use of options that is the problem.  Unfortunately I
> can't remember offhand how I've used them in the past :( but perhaps
> someone else will.
>
> > If I have a LZMA compressed TAR file, how can I list/read it with Sage
> > and/or r.untar in Sage?
>
> If you are just trying to use R from within Sage, without integrating
> it with the rest of Sage, you can also use r_console(), or use %r in
> the notebook, and just do things that way.
>
> - kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org