Skip to content

Commit

Permalink
update library
Browse files Browse the repository at this point in the history
  • Loading branch information
emdelponte committed Oct 16, 2023
1 parent 97fbf3c commit 0ced717
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion R/CompMuCens.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,21 @@

CompMuCens <- function(dat, scale, grade=T, ckData=F){
#Check if the required packages are installed in the working environment

#Check if the required packages are installed in the working environment
if (class(try(library(interval))) =="try-error") {
if (class(try(library(Icens))) =="try-error") {
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
#Installing the Icens package, which is required by the Interval package
BiocManager::install("Icens")
}
#Installing the interval package
install.packages ("interval", repos="http://cloud.r-project.org")
}
if (class(try(library(dplyr))) =="try-error") {
#Installing the dplyr package.
install.packages("dplyr", repos="http://cloud.r-project.org")
}

# Converting data into a censored data format
if (grade==T) {
Expand Down
Binary file removed data/DidymellaWatermellon.rda
Binary file not shown.
Binary file added data/DidymellaWatermelon.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/DidymellaWatermelon.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
\alias{DidymellaWatermelon}
\title{Spatial data on gummy stem blight of watermelon}
\description{
Data form the paper "Temporal and spatial dynamics of watermelon gummy stem blight epidemics".
Data from the paper 'Temporal and spatial dynamics of watermelon gummy stem blight epidemics'.
}
\usage{data("DidymellaWatermelon")}
\format{
Expand Down

0 comments on commit 0ced717

Please sign in to comment.