Extension:Script/ja

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki 拡張機能マニュアル
OOjs UI icon advanced.svg
Script
リリースの状態: 安定
Scriptextension.png
実装 タグ , 特別ページ
説明 extension R with ScriptTest
作者 XiangRu Ma (P.swikitalk)
最新バージョン 0.2 (2013-05-16)
MediaWiki 1.19.X, 1.20.X
PHP 5.3+
データベースの変更 いいえ
ライセンス GPLv2
ダウンロード Script
  • $wgRroot
  • $wgRScriptPath
  • $wgRDataPath

  • <R>
  • <Rform>

  • useR
  • useShell
translatewiki.net で翻訳を利用できる場合は、Script 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。

The Script extension does compute with R, and test script of R, Perl, PHP and etc..

機能の概要[edit]

  • Script provide tags (r and rform) to compute with R.
  • The script of Programming languages or linux shell can be tested via a Special:Specialpages--- Special:ScriptTest.
  • User rights of implement this extension can be changed.

要件[edit]

ダウンロード[edit]

This extension can be obtained offsite from here (click starts the download).

インストール[edit]

Once you have downloaded the code, place the Survey directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

#Script
require_once( "$IP/extensions/Script/Script.php" );
$wgRroot = "/var/www/html/wiki";
$wgRScriptPath = "/images";
$wgRDataPath = "/images";

Configuration parameters[edit]

$wgRroot = "/var/www/html/wiki";
$wgRScriptPath = "/images";
$wgRDataPath = "/images";

R configure file: /extensions/Script/rwiki.r

利用者権限[edit]

User rights of implement this extension can be changed for security.

default configure of user right
$wgGroupPermissions['sysop']['useR']   = true;
$wgGroupPermissions['sysop']['useShell']   = true;

使用法[edit]

<Rform name="binom">
x:<input type="text" name="x" size="50" value="c(10,20)"><br />
p:<input type="text" name="p" size="5" maxlength="5" value="0.4">
</Rform>
<R name="binom">
if (exists("x")) x<-ctext(x) else x<-c(10,20);
if (exists("p")) p<-ctext(p) else p<-0.4;
x#input;
p;
binom.test(x,p=p);
</R>

対応言語[edit]

These are the Programming languages known by Script that can be used in ScriptTest.

  • R script
  • perl script
  • php script
  • python script
  • matlab script
  • lua script
  • ruby script
  • bash shell

関連項目[edit]

言語: English  • 日本語