作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想记录 R 中的替换函数,但是当我运行 R CMD check 时,我收到此错误消息:
Bad \usage lines found in documentation object 'timestamps':
<unescaped bksl>S4method{"timestamps<-"}{.MoveTrack}(this, value)
Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.
The \usage entries must correspond to syntactically valid R code.
\name{timestamps}
\alias{timestamps}
\alias{timestamps,.MoveTrack-method}
\alias{timestamps,.MoveTrackSingle-method}
\alias{"timestamps<-",.MoveTrack-method}
\docType{methods}
\title{Extract the timestamps of a Move or MoveStack object}
\description{The timestmaps method returns or sets the timestamps of a track from a Move or MovesStack object.}
\usage{
\S4method{timestamps}{.MoveTrackSingle}(this)
\S4method{timestamps}{.MoveTrack}(this)
\S4method{"timestamps<-"}{.MoveTrack}(this, value)
}
\arguments{
\item{this}{Move or MoveStack object}
\item{value}{timestamps from class POSIXct}
}
setGeneric("timestamps", function(this) standardGeneric("timestamps"))
setMethod("timestamps", ".MoveTrack",
function(this) {
this@timestamps
})
setMethod("timestamps", ".MoveTrackSingle",
function(this) {
this@timestamps
})
setGeneric("timestamps<-", function(this, value) standardGeneric("timestamps<-"))
setReplaceMethod("timestamps", ".MoveTrack",
function(this, value) {
this@timestamps <- value
this
})
\S4method{"timestamps<-"}{.MoveTrack}(this, value)
\S4method{"timestamps<-."}{.MoveTrack}(this, value)
\S4method{"timestamps<-$"}{.MoveTrack}(this, value)
\S4method{'timestamps<-'}{.MoveTrack}(this, value)
\S4method{timestamps<-}{.MoveTrack}(this, value)
\S4method{"timestamps\<\-"}{.MoveTrack}(this, value)
\S4method{"timestamps\\<\\-"}{.MoveTrack}(this, value)
最佳答案
尝试
\S4method{timestamps}{.MoveTrack}(this) <- value
关于r - <unescaped bksl>S4method 记录替换函数时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11952842/
我想记录 R 中的替换函数,但是当我运行 R CMD check 时,我收到此错误消息: Bad \usage lines found in documentation object 'timesta
我是一名优秀的程序员,十分优秀!