[R] testInstalledBasic
Uwe Ligges
ligges at statistik.tu-dortmund.de
Fri Jul 1 20:04:12 CEST 2011
On 01.07.2011 19:47, Cody Hamilton wrote:
> Hello Marc,
>
> I think I am quite a dunce!
>
> I have diff.exe in the folder C:\Program Files\R\R-2.13.0\bin, which is where the R.exe file is located.
>
> I ran the following from the command line:
>
>> diff C:/Program Files/R/R-2.13.0/tests/eval-etc.Rout C:/Program Files/R/R-2.13.0/tests/eval-etc.Rout.save> diff.txt
> Error: unexpected symbol in "diff C"
>
>
> I tried again with quotes around the file names:
>
>> diff 'C:/Program Files/R/R-2.13.0/tests/eval-etc.Rout' 'C:/Program Files/R/R-2.13.0/tests/eval-etc.Rout.save'> diff.txt
> Error: unexpected string constant in "diff 'C:/Program Files/R/R-2.13.0/tests/eval-etc.Rout'"
No, you need to run it in the Windows command line rather than in R.
There you can also cd to the tests directory and ask R to
R CMD Rdiff eval-etc.Rout eval-etc.Rout.save
Uwe Ligges
> Regards,
> Cody
>
> --- On Fri, 7/1/11, Marc Schwartz<marc_schwartz at me.com> wrote:
>
>> From: Marc Schwartz<marc_schwartz at me.com>
>> Subject: Re: [R] testInstalledBasic
>> To: "Cody Hamilton"<cody.shawn at yahoo.com>
>> Cc: "Uwe Ligges"<ligges at statistik.tu-dortmund.de>, r-help at r-project.org
>> Date: Friday, July 1, 2011, 10:16 AM
>> Cody,
>>
>> The 'diff' program should be installed with Duncan's RTools
>> package on Windows and if in your path, should be usable via
>> the CLI.
>>
>> From a Windows console command line, in the folder where
>> the output files in question are located, use:
>>
>> diff eval-etc.Rout eval-etc.Rout.save> diff.txt
>>
>> That will generate the file diff.txt, which will contain
>> the line by line differences in the two files, which you can
>> post back for review.
>>
>> There is also this post from Prof. Ripley from last year:
>>
>> https://stat.ethz.ch/pipermail/r-help/2010-May/237922.html
>>
>> which may perhaps be helpful for Uwe in considering other
>> possible solutions if locale is relevant here.
>>
>> HTH,
>>
>> Marc Schwartz
>>
>>
>> On Jul 1, 2011, at 11:51 AM, Cody Hamilton wrote:
>>
>>> Hello Uwe,
>>>
>>> Please forgive my ignorance - how can I get my diffs?
>>>
>>> Regards,
>>> -Cody
>>>
>>> --- On Fri, 7/1/11, Uwe Ligges<ligges at statistik.tu-dortmund.de>
>> wrote:
>>>
>>>> From: Uwe Ligges<ligges at statistik.tu-dortmund.de>
>>>> Subject: Re: [R] testInstalledBasic
>>>> To: "Cody Hamilton"<cody.shawn at yahoo.com>
>>>> Cc: r-help at r-project.org
>>>> Date: Friday, July 1, 2011, 9:13 AM
>>>>
>>>>
>>>> On 01.07.2011 18:07, Cody Hamilton wrote:
>>>>> Hi Uwe,
>>>>>
>>>>> Thank you for taking the time to look into
>> this!
>>>>>
>>>>> I created the function my.test by modifying
>>>> testInstalledBasic with the line change you list
>> below and
>>>> then ran:
>>>>>
>>>>> Sys.setenv(LC_COLLATE="C")
>>>>> my.test('basic')
>>>>>
>>>>> I get the same error message as before:
>>>>>
>>>>>> my.test('basic')
>>>>> running strict specific tests
>>>>> running code in
>> ‘eval-etc.R’
>>>>> comparing
>> ‘eval-etc.Rout’ to
>>>> ‘eval-etc.Rout.save’ ...[1] 1
>>>>
>>>>
>>>> But we really need your diffs!
>>>>
>>>> Uwe Ligges
>>
>>
More information about the R-help
mailing list