Read as file such as ".Renviron" or "Renviron.site" in the format described in the help for Startup, and set environment variables as defined in the file.
阅读文件,如.Renviron或Renviron.site在启动帮助中描述的格式,并设置环境变量在文件中定义。
用法----------Usage----------
readRenviron(path)
参数----------Arguments----------
参数:path
A length-one character vector giving the path to the file. Tilde-expansion is performed where supported.
一个长度为一个字符向量文件的路径。波浪线扩展进行支持的地方。
值----------Value----------
Scalar logical indicating if the file was read successfully. Returned invisibly. If the file cannot be opened for reading, a warning is given.
标逻辑表示,如果该文件被成功读取。返回无形。如果该文件不能打开阅读,给予警告。
参见----------See Also----------
Startup for the file format.
Startup文件格式。
举例----------Examples----------
## re-read a startup file (or read it in a vanilla session)[#重新读取启动文件(或阅读香草会议上)]
readRenviron("~/.Renviron")