Hi Florent,
I did some further testing before hitting send... I performed a force notest install Statistics::R and then went into the test directory to run the test manually. Results below.
=================================================
C:\Users\eclisob\.cpanm\work\1352216263.9508\Statistics-R-0.28\t>perl 03-run.t
ok 1
ok 2 - Binary
ok 3
ok 4 - Basic
ok 5
ok 6
ok 7
ok 8
ok 9 - IO
ok 10
ok 11 - Multi-line commands
ok 12
ok 13 - Heredoc commands
ok 14 - Multiple commands
Internal problem while running this R command:
source('t\data\script.R')
Got the error:
'\d' is an unrecognized escape in character string starting "source('t\d"
Execution halted
Most likely, your R command contained lines exceeding 4076 bytes...
# Tests were run but no plan was declared and done_testing() was not seen.
C:\Users\eclisob\.cpanm\work\1352216263.9508\Statistics-R-0.28\t>
=====================================================
I get the following output. Note the error regarding '\d' below. It doesn't seem to proceed after the point in which I grabbed the screen shot. I waited 5 minutes with no obvious change in state. Looking in Process Explorer I can see that there are several R command processor initialized as well as an R terminal. No CPU time is associated with them while I waited to see if anything else occurred in the cpan window.
I am using Strawberry Perl: perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x86-multi-thread.
R - two versions - the one in the path is R-2.13.0 as indicated in the output below.
IPC::Run is version 0.91, (0.92 is latest - upgrading didn't change the results below)
Text::Balanced is version is version 2.02 (latest)
Regexp::Common is version 2011121001 (latest)
Looking in to the code I see that it seems to be associated with passing the r script in to the module test. I tried the script itself and there are no obvious issues using it from the command line as `r --vanilla <script.R` => the output follows the cpan output.
==============================================================
Show quoted textcpan> install Statistics::R
Running install for module 'Statistics::R'
Running make for F/FA/FANGLY/Statistics-R-0.28.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/F/FA/FANGLY/Statistics-R-0.28.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\F\FA\FANGLY\Statistics-R-0.28.tar.gz ok
CPAN.pm: Going to build F/FA/FANGLY/Statistics-R-0.28.tar.gz
Locating bin:R... found at C:\Program Files\R\R-2.13.0\bin\R.EXE.
Checking if your kit is complete...
Looks good
Writing Makefile for Statistics::R
Writing MYMETA.yml and MYMETA.json
cp lib/Statistics/R/Legacy.pm blib\lib\Statistics\R\Legacy.pm
cp lib/Statistics/R.pm blib\lib\Statistics\R.pm
cp lib/Statistics/R/Win32.pm blib\lib\Statistics\R\Win32.pm
FANGLY/Statistics-R-0.28.tar.gz
C:\strawberry\c\bin\dmake.EXE -- OK
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t
t/00-load.t ........ 1/? # Testing Statistics::R 0.28, Perl 5.012003, C:\STRAWB~1\perl\bin\perl.exe
t/00-load.t ........ ok
t/01-pod.t ......... skipped: Test::Pod 1.00 required for testing POD
t/02-legacy.t ...... ok
t/03-run.t ......... 3/? Internal problem while running this R command:
source('t\data\script.R')
Got the error:
'\d' is an unrecognized escape in character string starting "source('t\d"
Execution halted
Most likely, your R command contained lines exceeding 4076 bytes...
# Tests were run but no plan was declared and done_testing() was not seen.
t/03-run.t ......... Dubious, test returned 1 (wstat 256, 0x100)
All 14 subtests passed
t/04-start-stop.t .. ok
t/05-shared.t ...... ok
t/06-get-set.t ..... ok
t/07-robust.t ...... ok
t/08-errors.t ...... 7/?
=====================================================
I ran the script.R file with R and no issues were apparent. Output is below.
C:\Users\eclisob\.cpanm\work\1352216263.9508\Statistics-R-0.28\t\data>r --vanilla <script.R
R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Show quoted text> postscript("file2.ps" , horizontal=FALSE , width=500 , height=500 , pointsize=1)
>
> plot(c(1, 5, 10), type = "l")
>
> dev.off()
null device
1
Show quoted text>
> unlink("file2.ps")
>
> for (j in 1:3) { cat("loop iteration: "); print(j); }
loop iteration: [1] 1
loop iteration: [1] 2
loop iteration: [1] 3
Show quoted text>
> write("Some innocuous message on stdout\n", stdout())
Some innocuous message on stdout
Show quoted text>
> write("Some innocuous message on stderr\n", stderr())
Some innocuous message on stderr
Show quoted text>
> x <- 123
> print(x)
[1] 123
Show quoted text>
> x <- 456 ; write.table(x, file="", row.names=FALSE, col.names=FALSE)
456
Show quoted text>
> a <- 2
> b <- 5
> c <- a * b
> print('ok')
[1] "ok"
Show quoted text>
C:\Users\eclisob\.cpanm\work\1352216263.9508\Statistics-R-0.28\t\data>
===========================================================================
If there is anything more I can do to help I would need a little direction as to what to test or change.
Thanks,
CLIFF SOBCHUK
Core RF Engineering
Phone 613-667-1974 ecn: 8109-71974
mobile 403-819-9233
yahoo: sobchuk
www.ericsson.com
"The author works for Telefonaktiebolaget L M Ericsson ("Ericsson"), who is solely responsible for this email and its contents. All inquiries regarding this email should be addressed to Ericsson. The web site for Ericsson is www.ericsson.com."
This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer
Show quoted text-----Original Message-----
From: Florent Angly via RT [mailto:bug-Statistics-R@rt.cpan.org]
Sent: Monday, November 05, 2012 9:20 PM
To: Clifford Sobchuk
Subject: [rt.cpan.org #77761] Statistics::R fails on Windows Vista SP2
<URL:
https://rt.cpan.org/Ticket/Display.html?id=77761 >
Hi Cliff,
I cannot reproduce this bug on my machine. Since it seems to be system-dependent, I am not sure what the cause of the problem is, much less how to fix it.
Can you clarify: do the test always fails identically or is there some randomness to the failure?
Could you please download and install Statistics::R version 0.28 which I have just released?
If the tests fail again, please let me know what version of the following you have: R, IPC::Run, Text::Balanced and Regexp::Common.
Then, if you have older versions of the Perl modules (IPC::Run, Text::Balanced and Regexp::Common), please make sure to update to their latest versions and try to install Statistics::R again.
If this does not work, maybe try to upgrade your R to the latest version and see if this helps.
Thanks,
Florent