[Tikzdevice-bugs] Peformance
Cameron Bracken
cameron.bracken at gmail.com
Sun Dec 6 17:47:59 CET 2009
Thanks! I will look these over and likely include them in the next release.
-Cameron
On Sun, Dec 6, 2009 at 7:24 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> I have modified the testRTikZDevice.R so that it will also run on Windows
> and have also created run-tests.bat which is the Windows counterpart to
> run-tests.sh except the dangerous parts of run-tests have been commented
> out. (run-tests.sh automatically wiped out the contents of the output
> folder and it automatically rebuilt and installed the package whereas
> run-tests.bat gives messages asking the user to do those.)
>
> The changes to testRTikZDevice.R are that the R_PDFLATEXCMD environment
> variable now defaults to "pdflatex" if its not otherwise specified and the
> new GSCMD environment variable defaults to "gswin32c.exe" on Windows and
> "gs" for other platforms. Also the use of sink(tempfile()), as you
> suggested below, is incorporated.
>
> Will send these two files offline.
>
> On Sat, Dec 5, 2009 at 1:10 PM, Cameron Bracken <cameron.bracken at gmail.com>
> wrote:
>>
>> I would have been surprised if there were not issues on windows. We
>> developed the tests for use in development (hence the reason they are
>> in inst/tests and not the standard tests/ location) and so did not
>> really have cross platform compatibility in mind. Good to know the
>> tests run successfully on windows.
>>
>> The reference to /dev/null is just there to suppress the output of the
>> packages on loading and so does not affect the test at all. A similar
>> way would be
>>
>> sink(tempfile())
>> <load packages>
>> sink()
>>
>> -Cameron
>>
>>
>>
>> On Sat, Dec 5, 2009 at 10:18 AM, Gabor Grothendieck
>> <ggrothendieck at gmail.com> wrote:
>> > You can ignore the problem I previously reported. I have it mostly
>> > working
>> > now. In MiKTeX 2.8 there can be a local repository for all users and
>> > per
>> > user and it was updating one but using the other. I think I have it
>> > straight now.
>> >
>> > There are a few problems with running the test that seem to be Windows
>> > related:
>> >
>> > 1. the testRTikZDevice.R script uses an environment variable
>> > R_PDFLATEXCMD
>> > but that was not set so I set it manually like this:
>> >
>> > set R_PDFLATEXCMD=pdflatex
>> > Rscript testRTikZDevice.R --output=output
>> >
>> > The script should supply a default of "pdflatex" so that this is not
>> > necessary..
>> >
>> > 2. Also in test 19 it stops because of a reference to /dev/null which is
>> > not
>> > present on Windows. Note that in the case of Windows NUL is the
>> > corresponding filename. Or, if that test is not important you could
>> > just
>> > eliminate it.
>> >
>> > On Sat, Dec 5, 2009 at 10:38 AM, Gabor Grothendieck
>> > <ggrothendieck at gmail.com> wrote:
>> >>
>> >> Thanks. I have upgraded to MiKTeX 2.8 but it still fails. See below
>> >> and
>> >> attached test.log. If I look in the MiKTeX package manager (mpm from
>> >> commandn line) I see a pgf latex package was installed today so I
>> >> presume
>> >> its the latest. I do not see a separate tikz latex package so I
>> >> presume its
>> >> part of pgf.
>> >>
>> >> C:\tmp2\tikzDevice\inst\tests>Rscript testRTikZDevice.R --output=output
>> >> >
>> >> test.log
>> >> Loading required package: filehash
>> >> Loading required package: methods
>> >> filehash: Simple key-value database (2.0-1 2008-12-19)
>> >> tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.4.8)
>> >> Checking for a LaTeX compiler...
>> >>
>> >>
>> >> A working LaTeX compiler was found in:
>> >> The PATH using the command latex
>> >>
>> >> Global option tikzLatex set to:
>> >> C:\PROGRA~1\MIKTEX~1.8\miktex\bin\latex.exe
>> >>
>> >> MiKTeX-pdfTeX 2.8.3563 (1.40.10) (MiKTeX 2.8)
>> >> Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh
>> >> TeX is a trademark of the American Mathematical Society.
>> >>
>> >>
>> >> Error in getMetricsFromLatex(TeXMetrics) :
>> >> ******** There was a problem calculating string metrics,
>> >> ******** likely there was a problem with your custom packages.
>> >> ******** See the LaTeX log file above for details.
>> >> Calls: system.time ... localTitle -> title -> <Anonymous> ->
>> >> getMetricsFromLatex
>> >>
>> >> Execution halted
>> >>
>> >> On Fri, Dec 4, 2009 at 6:23 PM, Cameron Bracken
>> >> <cameron.bracken at gmail.com> wrote:
>> >>>
>> >>> It seems like you are using an outdated version of pgf/tikz:
>> >>>
>> >>> Package: tikz 2007/06/07 v1.18 (rcs-revision 1.87)
>> >>>
>> >>> There must be something in one of the tests that depends on version
>> >>> 2.00. This is likely causing the error. It is really worth upgrading
>> >>> (http://sourceforge.net/projects/pgf/). If I'm not mistaken this
>> >>> version is included in MikTeX 2.8.
>> >>>
>> >>> It is not listed currently as a SystemRequirement but it really should
>> >>> be.
>> >>>
>> >>> -Cameron
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Dec 4, 2009 at 4:03 PM, Gabor Grothendieck
>> >>> <ggrothendieck at gmail.com> wrote:
>> >>> > I commented out the source statement but am still getting an error
>> >>> > on
>> >>> > this.
>> >>> > Here is the output and test.log is attached.
>> >>> >
>> >>> > C:\tmp2\tikzDevice\inst\tests>findstr source testRTikZDevice.R
>> >>> > # source('testXeLaTeX.R')
>> >>> >
>> >>> > C:\tmp2\tikzDevice\inst\tests>Rscript testRTikZDevice.R
>> >>> > --output=output
>> >>> > >
>> >>> > test.l
>> >>> > og
>> >>> > Loading required package: filehash
>> >>> > Loading required package: methods
>> >>> > filehash: Simple key-value database (2.0-1 2008-12-19)
>> >>> > tikzDevice: A Device for R Graphics Output in PGF/TikZ Format
>> >>> > (v0.4.8)
>> >>> > Checking for a LaTeX compiler...
>> >>> >
>> >>> >
>> >>> > A working LaTeX compiler was found in:
>> >>> > The PATH using the command latex
>> >>> >
>> >>> > Global option tikzLatex set to:
>> >>> > C:\PROGRA~1\MIKTEX~1.7\miktex\bin\latex.exe
>> >>> >
>> >>> > MiKTeX-pdfTeX 2.7.2808 (1.40.4) (MiKTeX 2.7)
>> >>> > Copyright (C) 1982 D. E. Knuth, (C) 1996-2006 Han The Thanh
>> >>> > TeX is a trademark of the American Mathematical Society.
>> >>> >
>> >>> >
>> >>> > Error in getMetricsFromLatex(TeXMetrics) :
>> >>> > ******** There was a problem calculating string metrics,
>> >>> > ******** likely there was a problem with your custom packages.
>> >>> > ******** See the LaTeX log file above for details.
>> >>> > Calls: system.time ... localTitle -> title -> <Anonymous> ->
>> >>> > getMetricsFromLatex
>> >>> >
>> >>> > Execution halted
>> >>
>> >
>> >
>
>
More information about the Tikzdevice-bugs
mailing list