inst/unitTests/test_QuotedGPL.R

## Test unit 'testQuotedGPL'

.setUp <-
function () {
	## Specific actions for svUnit: prepare context
	if ("package:svUnit" %in% search()) {
		.Log <- Log() ## Make sure .Log is created
		.Log$..Unit <- "inst/unitTests/runittestQuotedGPL.R"
		.Log$..File <- ""
		.Log$..Obj <- ""
		.Log$..Tag <- ""
		.Log$..Msg <- ""
		rm(..Test, envir = .Log)
	}
}

.tearDown <-
function () {
	## Specific actions for svUnit: clean up context
	if ("package:svUnit" %in% search()) {
		.Log$..Unit <- ""
		.Log$..File <- ""
		.Log$..Obj <- ""
		.Log$..Tag <- ""
		.Log$..Msg <- ""
		rm(..Test, envir = .Log)
	}
}

"testQuotedGPL" <-
function() {
  gpl = getGEO('GPL4133')

  checkEqualsNumeric(45220,nrow(Table(gpl)),'GPL4133 should have 45220 rows')
}
ian1roberts/GEOquery documentation built on May 18, 2019, 1:27 a.m.