R/checkInstallation.R

checkInstallation <- function(){

  if(.Platform$OS.type == "windows"){
	chk <- file.exists("c:/QuasiMC/enviro.e") & file.exists("c:/QuasiMC/QuasiMC.exe")
  }
  else if (Sys.info()[['sysname']] == "Darwin") {
        qmc_dir = paste(path.expand("~"),"/QuasiMC/",sep="")
        chk <- file.exists(paste(qmc_dir,"enviro.e",sep="")) & file.exists(paste(qmc_dir,"QuasiMC.app",sep=""))
  }
  else {
        return(FALSE)
  }
return(chk)
}

Try the YplantQMC package in your browser

Any scripts or data that you put into this service are public.

YplantQMC documentation built on May 2, 2019, 5:50 p.m.