mirror of
				https://github.com/johrpan/geposan.git
				synced 2025-10-26 10:47:25 +01:00 
			
		
		
		
	Use inherits() for class checking
				
					
				
			This commit is contained in:
		
							parent
							
								
									207fc753a7
								
							
						
					
					
						commit
						d98c70a205
					
				
					 4 changed files with 6 additions and 6 deletions
				
			
		|  | @ -18,7 +18,7 @@ | |||
| #' | ||||
| #' @export | ||||
| compare <- function(ranking, comparison_gene_ids) { | ||||
|     if (!"geposan_ranking" %chin% class(ranking)) { | ||||
|     if (!inherits(ranking, "geposan_ranking")) { | ||||
|         stop("Invalid ranking. Use geposan::ranking().") | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue