[R] Can R do this ?

Gabor Csardi csardi at rmki.kfki.hu
Tue Jul 8 11:15:02 CEST 2008


If this is about more than a handful files, then it is really painful
to do it with OpenOffice.org or LyX, I guess.

You can use imagemagick, this is fairly standard on Linux. Then it is 
something like this, assuming you have bash:

for f in *.png; do convert $f ${f%png}pdf; done
for f in *.jpg; do convert $f ${f%jpg}pdf; done

Of course this does not vectorise the files....

Gabor

On Tue, Jul 08, 2008 at 10:05:59AM +0100, Paul Smith wrote:
> On Tue, Jul 8, 2008 at 6:59 AM, Daren Tan <daren76 at hotmail.com> wrote:
> >
> > I have a folder full of pngs and jpgs, and would like to consolidate them into a pdf with appropriate title and labels. Can this be done via R ?
> 
> I do not know whether R can do that. However, you can accomplish that
> easily with LyX or with OpenOffice.
> 
> Paul
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Csardi Gabor <csardi at rmki.kfki.hu>    UNIL DGM



More information about the R-help mailing list