MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/R/library/OREbase/doc/man/zh_CN/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/R/library/OREbase/doc/man/zh_CN/ore.attach.Rd

%
% Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 
%
\name{ore.attach}
\alias{ore.attach}
\alias{ore.detach}
\title{
Oracle R Enterprise 环境管理函数
}
\description{
将命名方案的 \R \code{\link[base]{environment}} 挂接到 Oracle
  R Enterprise 会话中的 \R \code{\link[base]{search}} 路径
  或者从该路径分离。如果 \R
  \code{\link[base]{environment}} 将挂接到 \R 搜索路径,
  则可以直接按名称访问方案中
  表示数据库表和视图的
  对应 \code{\linkS4class{ore.frame}} 对象。
}
\usage{
ore.attach(schema, pos = 2, warn.conflicts = TRUE)
ore.detach(schema)
}
\arguments{
  \item{schema}{
一个用于指定数据库方案名的字符串。
}
  \item{pos}{
一个用于指定 \R \code{\link[base]{search}} 路径中位置的大于 1 的
    整数值。
}
  \item{warn.conflicts}{
一个指示是否应为 \code{\link[base]{conflicts}}
    (即共享同一名称的对象,
    这些对象通过挂接 \R \code{\link[base]{environment}} 而生成) 输出警告的逻辑值。
}
}


\details{
如果未指定参数 \code{schema}, 则将使用默认方案 (即
  在连接时为 Oracle R Enterprise 会话指定的
  方案)。
  默认情况下, Oracle R Enterprise 会话中方案的 \R 环境
  将挂接到 \R 搜索路径中的位置 2, 紧接在
  用户工作区之后, 所有以前挂接的程序包
  和环境之前。\code{pos} 参数可用于将 Oracle R Enterprise 会话
  中方案的 \R 环境挂接到
  搜索路径中的其他位置, 但不能挂接到
  \code{pos = 1}。
  函数 \code{\link{ore.sync}} 和 \code{\link{ore.rm}} 向 Oracle R Enterprise
  会话中方案的此 \R 环境添加 \code{\linkS4class{ore}} 对象以及
  从该环境中删除这些对象。
}

\value{
对于 \code{ore.attach} 函数, 将使用 \code{"name"} 属性
  以不可见方式返回环境。
  对于 \code{ore.detach} 函数, 返回值是不可见的
  \code{NULL} 值。
}
\references{
  \href{http://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/documentation/index.html}{Oracle R Enterprise}
}
\author{
  Oracle \email{oracle-r-enterprise@oracle.com}
}
\seealso{
  \code{\link{ore.connect}},
  \code{\link{ore.exists}},
  \code{\link{ore.get}},
  \code{\link{ore.ls}},
  \code{\link{ore.rm}},
  \code{\link{ore.sync}},
  \code{\link[base]{search}}
}
\examples{
if (!interactive())
{
  search()
  ore.attach()
  search()
  ore.detach()
  search()
  ore.attach("rquser", 3)
  search()
  ore.detach("rquser")
  search()
}
}
\keyword{data}
\keyword{database}
\keyword{ORE}

OHA YOOOO