找回密码
 注册
查看: 2393|回复: 0

R语言:Rconsole()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 21:38:13 | 显示全部楼层 |阅读模式
Rconsole(utils)
Rconsole()所属R语言包:utils

                                        R for Windows Configuration
                                         R为Windows配置

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

The file "Rconsole" configures the R GUI console in this Windows port. The loadRconsole function loads a new  configuration.
文件Rconsole在此Windows端口配置的R GUI控制台。 loadRconsole函数加载新的配置。

The file "Rdevga" configures the graphics devices windows, win.graph, win.metafile and win.print, as well as the bitmap devices bmp, jpeg, png and tiff (which use for type =   "windows" use windows internally).
Rdevga配置文件的图形设备windows,win.graph,win.metafile和win.print,以及位图设备bmp jpeg,png和tiff(type =   "windows"用windows内部使用)。


用法----------Usage----------


  loadRconsole(file)



参数----------Arguments----------

参数:file
The file from which to load a new "Rconsole" configuration. By default a file dialog is used to select a file.  
从该文件加载一个新的Rconsole配置。默认情况下,一个文件对话框,用于选择一个文件。


Details

详情----------Details----------

There are system copies of these files in "<VAR>R_HOME</VAR>\etc".  Users can have personal copies of the files: these are looked for in the location given by the environment variable R_USER. The system files are read only if a corresponding personal file is not found.
有这些文件系统拷贝<VAR>R_HOME</VAR>\etc。用户可以有个人的文件的副本:这些环境变量R_USER给定的位置看着。只有当相应的个人档案,未发现系统文件被读取。

If the environment variable R_USER is not set, the R system sets it to HOME if that is set (stripping any trailing slash), otherwise to the Windows "personal"  directory,  otherwise to {HOMEDRIVE}{HOMEPATH} if HOMEDRIVE and HOMEDRIVE are both set otherwise to the working directory.  This is as described in the file "rw-FAQ".
如果环境变量R_USER没有被设置,R系统设置HOME如果设置(剥离任何尾随的斜线),否则在Windows的“个人”目录下,否则<X >如果{HOMEDRIVE}{HOMEPATH}和HOMEDRIVE否则都设置工作目录。这被描述为在文件HOMEDRIVE。


值----------Value----------

Each of the files contains details in its comments of how to set the values.
每个文件包含在其意见如何设定值的详细信息。

At the time of writing "Rdevga" configured the mapping of font numbers to fonts, and "Rconsole" configured the appearance (single or multiple document interface, toolbar, statusbar on MDI), size, font and colours of the GUI console, and whether resizing the console sets options("width").
在写作的时间Rdevga字体号码的映射配置的字体,和Rconsole配置的外观(单个或多个文档界面,工具栏上的MDI的状态),大小,字体和颜色的GUI控制台,以及是否调整控制台设置options("width")。

The file "Rconsole" also configures the internal pager.  This shares the font and colours of the console, but can be sized separately.
文件Rconsole还配置内部寻呼机。这股控制台的字体和颜色,但可以单独大小。

"Rconsole" can also set the initial positions of the console and the graphics device, as well as the size and position of the MDI workspace in MDI mode.
Rconsole也可以设置控制台和图形设备,以及的MDI模式的MDI工作区的大小和位置的初始位置。

loadRconsole is called for its side effect of loading new  defaults.  It returns no useful value.
loadRconsole被称为其加载新的默认的副作用。它不返回有用的价值。


中文/日文/韩文----------Chinese/Japanese/Korean----------

Users of these languages will need to select a suitable font for the console (perhaps MS Mincho) and for the graphics device (although the default Arial has many CJK characters).  It is essential that the font selected for the console has double-width CJK characters &ndash; many monospaced fonts do not.
这些语言的用户将需要选择一个合适的字体控制台(也许MS Mincho)和图形设备(虽然默认Arial有很多的CJK字符)。至关重要的是,为控制台选择的字体有双宽CJK字符 - 许多等宽字体不。


注意----------Note----------

The GUI preferences item on the Edit menu brings up an dialog box which can be used to edit the console settings, and to save them to a file.
GUI preferences菜单上的项目Edit带来了一个对话框,可以用来编辑控制台的设置,将它们保存到一个文件。


作者(S)----------Author(s)----------



Guido Masarotto and R-core members




参见----------See Also----------

windows
windows


举例----------Examples----------


ruser <- Sys.getenv("R_USER")
cat("\n\nLocation for personal configuration files is\n   R_USER = ",
    ruser, "\n\n", sep="")
## see if there are personal configuration files[#看看是否有个人配置文件]
file.exists(file.path(ruser, c("Rconsole", "Rdevga")))

## show the configuration files used[#显示使用的配置文件]
showConfig <- function(file)
{
    ruser <- Sys.getenv("R_USER")
    path <- file.path(ruser, file)
    if(!file.exists(path)) path <- file.path(R.home(), "etc", file)
    file.show(path, header=path)
}
showConfig("Rconsole")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-4-21 21:44 , Processed in 0.025873 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表