我最近向 CRAN 提交了一个包,他们的一条评论是“请解开 Rd 文件中的所有示例,每个 Rd 文件可以在 5 秒内执行”。
我用 roxygen2 生成这些 rd 文件,所以我不确定打开所有示例的确切含义。他们都有一个不运行的论点,所以我不确定这是否是我必须删除的。下面是一些示例代码。
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netDir.R
\name{make.netDir}
\alias{make.netDir}
\title{Directed network}
\usage{
make.netDir(x, disp = FALSE, cap = FALSE, alpha = 0.003, pct = 10,
carrier = FALSE, metro = FALSE)
}
\arguments{
\item{x}{Data frame}
\item{disp}{Uses the Serrano's disparity filter (\url{https://en.wikipedia.org/wiki/Disparity_filter_algorithm_of_weighted_network})
to extract the backbone of the network.}
\item{cap}{Filters original data based on the edge weight.}
\item{alpha}{Argument for disparity filter.}
\item{pct}{Argument for cap filter. Value should be imput as percentage.}
\item{carrier}{Groups data per carrier and OD}
\item{metro}{Groups data by metropolitan area (not compatible with plot)}
}
\description{
Generates Directed Network with an iGraph object and a Data Frame.
}
\examples{
\dontrun{
make.netDir(OD_sample)
# Apply Disparity Filter
make.netDir(OD_sample, disp = TRUE, alpha = 0.05)
# Apply Percentage Cap
make.netDir(OD_sample, cap = TRUE, pct = 20)
}
}
编辑:包裹进入了 CRAN,这意味着它通过了所有的测试和备注等。但是,我仍然得到了上面提到的评论。