The R Project SVN R

Rev

Rev 47254 | Rev 47602 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 47254 Rev 47442
Line 23... Line 23...
23
use Getopt::Long;
23
use Getopt::Long;
24
use R::Rdconv;
24
use R::Rdconv;
25
use R::Utils;
25
use R::Utils;
26
use R::Vars;
26
use R::Vars;
27
 
27
 
28
my $revision = ' $Rev: 47254 $ ';
28
my $revision = ' $Rev: 47442 $ ';
29
my $version;
29
my $version;
30
my $name;
30
my $name;
31
 
31
 
32
## switch on autoflushing for STDOUT.  We want this as we
32
## switch on autoflushing for STDOUT.  We want this as we
33
## write to both STDERR (warnings) and STDOUT.
33
## write to both STDERR (warnings) and STDOUT.
Line 85... Line 85...
85
    print STDERR "Unknown type: options are " .
85
    print STDERR "Unknown type: options are " .
86
	join(", ", sort(keys(%types_and_exts))) . ".\n";
86
	join(", ", sort(keys(%types_and_exts))) . ".\n";
87
}
87
}
88
 
88
 
89
sub usage {
89
sub usage {
90
  print STDERR <<END;
90
  print <<END;
91
Usage: R CMD Rdconv [options] FILE
91
Usage: R CMD Rdconv [options] FILE
92
 
92
 
93
Convert R documentation in FILE to other formats such as plain text,
93
Convert R documentation in FILE to other formats such as plain text,
94
HTML or LaTeX.
94
HTML or LaTeX.
95
 
95
 
96
Options:
96
Options:
97
  -h, --help		print short help message and exit
97
  -h, --help		print short help message and exit
98
  -v, --version		print Rdconv version info and exit
98
  -v, --version		print version info and exit
99
  -d, --debug		turn on debugging (increase verbosity)
99
  -d, --debug		turn on debugging (increase verbosity)
100
  -t, --type=TYPE	convert to format TYPE
100
  -t, --type=TYPE	convert to format TYPE
101
  --encoding=enc        use 'enc' as the default encoding
101
  --encoding=enc        use 'enc' as the default encoding
102
  -o, --output=OUT	use 'OUT' as the output file
102
  -o, --output=OUT	use 'OUT' as the output file
103
      --os=NAME		use OS subdir 'NAME' (unix or windows)
103
      --os=NAME		use OS subdir 'NAME' (unix or windows)
Line 108... Line 108...
108
 
108
 
109
The default is to send output to stdout, which is also given by '-o -'.
109
The default is to send output to stdout, which is also given by '-o -'.
110
Using '-o ""' will choose an output filename by removing a '.Rd'
110
Using '-o ""' will choose an output filename by removing a '.Rd'
111
extension from FILE and adding a suitable extension.
111
extension from FILE and adding a suitable extension.
112
 
112
 
113
Email bug reports to <r-bugs\@r-project.org>.
113
Report bugs to <r-bugs\@r-project.org>.
114
END
114
END
115
  exit 0;
115
  exit 0;
116
}
116
}
117
 
117
 
118
### Local Variables: ***
118
### Local Variables: ***