File: BiocPackage-class.Rd

package info (click to toggle)
r-bioc-bioccheck 1.42.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 632 kB
  • sloc: ansic: 5; makefile: 2
file content (111 lines) | stat: -rw-r--r-- 3,923 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/BiocPackage-class.R
\docType{data}
\name{BiocPackage-class}
\alias{BiocPackage-class}
\alias{.BiocPackage}
\alias{BiocPackage}
\title{A class for representing files in a Bioconductor package}
\format{
An object of class \code{BiocPackage} of length 1.
}
\usage{
.BiocPackage
}
\value{
An object of class \code{BiocPackage}
}
\description{
The BiocPackage class is used to represent a Bioconductor
package. It is used by BiocCheck to store information about the package
being checked. The class has several methods to identify the type of
package, check for common issues, and store metadata about the package.
}
\section{Fields}{

\describe{
\item{\code{isValid}}{\code{logical} indicating whether the package's \code{DESCRIPTION} file
was able to be read without any errors}

\item{\code{isTar}}{\code{logical} indicating whether the package is a tarball}

\item{\code{isSourceDir}}{\code{logical} indicating whether the package being checked is
from a source directory}

\item{\code{isInfrastructure}}{\code{logical} indicating whether the package is an
Bioconductor infrastructure package based on the \code{biocViews} field}

\item{\code{usesRoxygen}}{\code{logical} indicating whether the package uses \code{roxygen2}
documentation}

\item{\code{usesRdpack}}{\code{logical} indicating whether the package uses \code{Rdpack}
package}

\item{\code{DESCRIPTION}}{\code{matrix} containing the DCF contents of the \code{DESCRIPTION}
file}

\item{\code{dependencies}}{\code{character} vector of package dependencies}

\item{\code{readError}}{\code{character} error message if the \code{DESCRIPTION} file could
not be read}

\item{\code{packageVersion}}{\code{character} version of the package}

\item{\code{packageType}}{\code{character} indicating the type of package based on the
\code{biocViews} field; can be \code{NA_character_} there are invalid \code{biocViews}
terms}

\item{\code{sourceDir}}{\code{character} path to the source directory}

\item{\code{vignettesDir}}{\code{character} path to the vignettes directory}

\item{\code{RSources}}{\code{character} vector of R source files}

\item{\code{VigSources}}{\code{character} vector of vignette source files}

\item{\code{manSources}}{\code{character} vector of Rd source files}

\item{\code{BiocCheckDir}}{\code{character} path to the directory where the package
BiocCheck logs are written}

\item{\code{packageName}}{\code{character} name of the package}

\item{\code{tarFilename}}{\code{character} filename of the tarball}

\item{\code{metadata}}{\code{list} containing metadata about the package}
}}

\section{methods}{

\itemize{
\item \code{initialize}: Initialize a \code{BiocPackage} object
\item \code{getPackageDir}: Get the package directory
\item \code{getRSources}: Get the R source files
\item \code{getVigSources}: Get the vignette source files
\item \code{getManSources}: Get the Rd source files
\item \code{getBiocCheckDir}: Get the directory where the BiocCheck logs are written
\item \code{getBiocViews}: Get the \code{biocViews} field from the \code{DESCRIPTION} file
\item \code{getPackageType}: Get the package type based on the \code{biocViews} field
\item \code{readDESCRIPTION}: Read the \code{DESCRIPTION} file
\item \code{getVigBuilder}: Get the vignette builder
\item \code{getAllDependencies}: Get all dependencies from the \code{DESCRIPTION} file
\item \code{findInfrastructure}: Is the package an infrastructure package?
\item \code{findRoxygen}: Does the package use \code{roxygen2}?
\item \code{getPackageVersion}: Get the package version
\item \code{untarTarball}: Untar the source tarball
}
}

\examples{

# Create a BiocPackage object
packageDirectory <- "path/to/package"
if (dir.exists(packageDirectory))
    .bioctest <- .BiocPackage$initialize(packageDirectory)

.bioctest <- BiocCheck:::.BiocPackage

.bioctest$DESCRIPTION

}
\keyword{internal}