Learn R Programming

AnalysisPageServer (version 1.6.2)

checkRookForkForVignettes: checkRookForkForVignettes

Description

Check availability of Rook and fork for vignettes

Usage

checkRookForkForVignettes(rookforkOK)

Arguments

rookforkOK
Provide FALSE here if you want to simulate not having valid installed copies of rook/fork, without actually having to delete them. Normally you should not supply this argument

Value

TRUE if Rook (>= 1.1) and fork are available, otherwise FALSE.

Details

Check availability of Rook and fork for vignettes. This function is only meant to be called at the top of the ExampleServers.Rmd and InteractiveApps.Rmd vignettes. It checks that the user has Rook >= 1.1 and fork installed. If not, then it emits a useful message about how to install it, and that the vignette will not build with all features. It also writes functions kill.process, readLines (yes! be careful!), startRookAnalysisPageServer and new.rook.analysis.page.app in the Global namespace to avoid calling the real functuons and instead just emit a short message that Rook/fork are not available. The message is also available in the global variable no.rook.fork.msg.

Really, you shouldn't use this function except if you are writing a new vignette.