https://github.com/cran/BDgraph
Raw File
Tip revision: 794ac65f28f9d1174ad21a3cb2dc7c06c5fcf91b authored by Reza Mohammadi on 04 May 2018, 10:05:33 UTC
version 2.48
Tip revision: 794ac65
check.os.R
check.os <- function( os = 2 )
{
	tmp <- .C( 'check_os', os = as.integer( os ), PACKAGE = "BDgraph" )
	
	if( !( tmp $ os %in% 0:1 ) ) stop( 'Failed to indentify the OS. Please contact the authors. ' )
	
	systm <- ifelse( tmp $ os == 0, 'windows_or_mac', 'linux' )
	message( paste0( 'BDgraph ', ifelse( systm == 'windows_or_mac', 'does not support ', 'supports ' ), 'multi-threading on this OS' ) )
}
   
back to top