Skip to content
Browse files

Changed document about using run_command() in YapRI::Base. That funct…

…ion doesn't exist. It is run_commands().
  • Loading branch information...
1 parent aecef2b commit 7f2094d43ae7f4cfabe382c3032b818c4583034b @kthakore kthakore committed Apr 6, 2012
Showing with 12 additions and 12 deletions.
  1. +1 −1 lib/R/YapRI.pm
  2. +5 −5 lib/R/YapRI/Base.pm
  3. +1 −1 lib/R/YapRI/Graph/Simple.pm
  4. +4 −4 t/base.t
  5. +1 −1 t/block.t
View
2 lib/R/YapRI.pm
@@ -29,7 +29,7 @@ __END__
$rbase->add_command('plot(c(1, 5, 10), type = "l")');
$rbase->add_command('dev.off()');
- $rbase->run_command();
+ $rbase->run_commands();
my $result_file = $rbase->get_result_file();
View
10 lib/R/YapRI/Base.pm
@@ -42,7 +42,7 @@ $VERSION = eval $VERSION;
$rbase->add_command('plot(c(1, 5, 10), type = "l")');
$rbase->add_command('dev.off()');
- $rbase->run_command();
+ $rbase->run_commands();
my $result_file = $rbase->get_result_file();
@@ -64,7 +64,7 @@ system, R commands can be run using this perl module with four methods:
- add_command('my R command'),
-- run_command(),
+- run_commands(),
- get_result_file();
@@ -154,7 +154,7 @@ Example: my $rbase = R::YapRI::Base->new({ use_defaults => 0 });
Args: A hash reference with the following parameters:
cmddir => A string, a dir to store the command files
- r_options => A string with the R options passed to run_command
+ r_options => A string with the R options passed to run_commands
use_defaults => 0|1 to disable/enable use_default.
debug => 0|1 to disable/enable debug for run commands.
keepfiles => 0|1 to disable/enable keepfiles after DESTROY rbase
@@ -602,7 +602,7 @@ sub delete_block {
Usage: my $r_options = $rih->get_r_options();
Desc: Get the r_opts_pass variable (options used with the R command)
- when run_command function is used
+ when run_commands function is used
Ret: $r_opts_pass, a string
@@ -627,7 +627,7 @@ sub get_r_options {
Usage: $rbase->set_r_options($r_opts_pass);
Desc: Set the r_opts_pass variable (options used with the R command)
- when run_command function is used. Use R -help for more info.
+ when run_commands function is used. Use R -help for more info.
The most common options used:
--save Do save workspace at the end of the session
--no-save Don't save it
View
2 lib/R/YapRI/Graph/Simple.pm
@@ -1131,7 +1131,7 @@ sub build_graph {
Usage: my ($filegraph, $fileresults) = $rgraph->run_graph();
- Desc: A wrapper function to use run_command over a concrete graph block
+ Desc: A wrapper function to use run_commands over a concrete graph block
Ret: $filegraph, the name of the graph file
$fileresults, with the result of run all the R commans of this block
View
8 t/base.t
@@ -506,14 +506,14 @@ is($img_y, 800,
## Check die for run_command
throws_ok { $rbase1->run_commands('fake') } qr/ERROR: Block=fake/,
- 'TESTING DIE ERROR when blockname used for run_command doesnt exist';
+ 'TESTING DIE ERROR when blockname used for run_commands doesnt exist';
throws_ok { $rbase1->run_commands('FBLOCK1') } qr/ERROR: cmdfile/,
- 'TESTING DIE ERROR when block used for run_command doesnt have set file';
+ 'TESTING DIE ERROR when block used for run_commands doesnt have set file';
$rbase1->set_cmddir('');
throws_ok { $rbase1->run_commands() } qr/ERROR: cmddir/,
- 'TESTING DIE ERROR when cmddir for run_command isnt set';
+ 'TESTING DIE ERROR when cmddir for run_commands isnt set';
$rbase1->set_cmddir($cmddir1);
@@ -522,7 +522,7 @@ $rbase1->set_cmddir($cmddir1);
$rbase2->set_r_options('--file=');
throws_ok { $rbase2->run_commands() } qr/SYSTEM FAILS running R/,
- 'TESTING DIE ERROR when system fail running run_command function';
+ 'TESTING DIE ERROR when system fail running run_commands function';
$rbase2->set_r_options('--slave --vanilla');
View
2 t/block.t
@@ -197,7 +197,7 @@ throws_ok { $rblock0->add_command([]) } qr/ERROR: ARRAY/,
'TESTING DIE ERROR when arg. supplied to add_command() isnt scalar or href';
-## Test run_command and get results, TEST 22 to 24
+## Test run_commands and get results, TEST 22 to 24
$rblock0->add_command({ mean => { 'x' => '' }});
$rblock0->run_block();

0 comments on commit 7f2094d

Please sign in to comment.
Something went wrong with that request. Please try again.