yacasInstall(Ryacas)
yacasInstall()所属R语言包:Ryacas
Install yacas files needed by Ryacas
安装与yacas所需要的Ryacas的文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Download the script.dat and yacas.exe files needed by Ryacas.
下载script.dat和yacas.exe所需要的Ryacas文件。
用法----------Usage----------
yacasInstall(url = "http://ryacas.googlecode.com/files/yacas-1.0.63.zip",
overwrite = FALSE)
yacasFile(filename = c("yacas.exe", "scripts.dat", "R.ys"),
slash = c("\\", "/"))
参数----------Arguments----------
参数:url
URL of a zip file containing yacas.exe and scripts.dat.
一个zip文件,其中包含yacas.exe和scripts.dat的URL。
参数:overwrite
If TRUE then existing files are overwritten.
如果TRUE然后覆盖现有文件。
参数:filename
Name of file whose full path is wanted.
文件的完整路径名被通缉。
参数:slash
slash style to use on output pathname.
削减风格上使用的输出路径名。
参数:...
Additional arguments passed to download.file. In most cases this is not used.
额外的参数传递给download.file。在大多数情况下这是不使用。
Details
详细信息----------Details----------
yacasInstall downloads a zip file and extracts yacas.exe and scripts.dat installing them into yacasFile("yacas.exe") and yacasFile("scripts.dat").
yacasInstall下载的zip文件并提取yacas.exe和scripts.dat安装到yacasFile("yacas.exe")和yacasFile("scripts.dat")上。
值----------Value----------
yacasInstall has no return value.
yacasInstall没有返回值。
yacasFile returns the full pathname of the indicated yacas file or the location where it would be if it were installed. For yacas.exe this is the contents of the environment variable YACAS_HOME or if that is not defined then it is the folder system.file(package = "Ryacas", "yacdir"). For scripts.dat this is the contents of the environment variable YACAS_SCRIPTS, or if that is not defined, it is the folder where yacas.exe is located or would be located. For R.ys this is the contents of the environment variable YACAS_INIT, or if that is not defined, it is located in system.file(package = "Ryacas", "yacdir"). Note that R.ys is included with Ryacas since it is a text file but scripts.dat is not included since it is a binary file which is why their default locations differ.
yacasFile返回的的指示与yacas文件或将其安装的位置的完整路径名。对于yacas.exe“”这是环境变量的内容YACAS_HOME如果没有定义,那么它的文件夹system.file(package = "Ryacas", "yacdir")。对于scripts.dat这是环境变量的内容YACAS_SCRIPTS,或者如果没有定义,它是yacas.exe位于或将位于的文件夹。对于R.ys“”这是环境变量YACAS_INIT,或者如果没有定义,它是位于system.file(package = "Ryacas", "yacdir")的内容。注意R.ys与Ryacas因为它是一个文本文件,但scripts.dat不包括在内,因为它是一个二进制文件,这就是为什么它们的默认位置不同。
yacasCheck returns 0 if the yacas files, yacas.exe and scripts.dat were found in yacasFile("yacas.exe") and yacasFile("scripts.dat"), -1 if they were not found and 1 if they were found but have the wrong file size. If the user specifies the YACAS_INVOKE_STRING environment variable then it will not be able to perform the check in which case NA is returned.
yacasCheck返回0如果与yacas文件,yacas.exe和scripts.dat被发现在yacasFile("yacas.exe")和yacasFile("scripts.dat"),-1如果他们没有找到和1,如果他们被发现,但有错误的文件大小。如果用户指定的YACAS_INVOKE_STRING环境变量,那么将无法执行检查,在这种情况下,NA返回。
注意----------Note----------
These functions are for Windows systems only. For other platforms these environment variables are not available and the user must install yacas manually prior to installing Ryacas.
这些功能仅适用于Windows系统。对于其他平台,这些环境变量,和用户必须安装与yacas,之前手动安装Ryacas。
实例----------Examples----------
## Not run: [#不运行:]
Sys.getenv("YACAS_INVOKE_STRING")
Sys.getenv("YACAS_HOME")
Sys.getenv("YACAS_SCRIPTS")
system.file(package = "Ryacas", "yacdir")
yacasFile("yacas.exe")
yacasFile("scripts.dat")
yacasInstall()
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|