Running examples in ‘FFD-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: LtdSampling-class
> ### Title: Class "LtdSampling"
> ### Aliases: LtdSampling-class HTML,LtdSampling-method
> ###   sample,LtdSampling-method show,LtdSampling-method
> ###   summary,LtdSampling-method
> ### Keywords: classes
> 
> ### ** Examples
> 
> ## Show the structure of the class:
> showClass("LtdSampling")
Class "LtdSampling" [package "FFD"]

Slots:
                                                                  
Name:           surveyData       sampleSizeLtd meanHerdSensitivity
Class:          SurveyData             numeric             numeric
                                                                  
Name:    meanHerdSensPerRG              nHerds  nHerdsPerRiskGroup
Class:             numeric             numeric             numeric
                                                                  
Name:        nSampleFixVec             probVec        nAnimalsMean
Class:             numeric             numeric             numeric
                          
Name:         expectedCost
Class:             numeric
> ## Create an object:
> data(sheepData)
> mySurvey <- surveyData(nAnimalVec = sheepData$nSheep, 
+     populationData = sheepData, designPrevalence = 0.002, 
+     alpha = 0.05, intraHerdPrevalence = 0.13,
+     diagSensitivity = 0.9, costHerd = 30, costAnimal = 7.1)
> myLtdSampling <- ltdSampling(survey.Data = mySurvey, sampleSizeLtd = 7)
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Warning in dhyper(x = nSampleDiseasedVector, m = nDiseased, n = nPopulation -  :
  NaNs produced
Error in if (probabilityLowerUpper[2] > alpha) return(Inf) : 
  missing value where TRUE/FALSE needed
Calls: ltdSampling -> computeOptimalSampleSize
Execution halted