R.utils (version 1.26.0)

System$findGhostscript: Searches for a Ghostview executable on the current system

Description

Searches for a Ghostview executable on the current system.

Currently only Windows and Unix is supported.

Usage

## Static method (use this):
## System$findGhostscript(updateRGSCMD=TRUE, firstOnly=TRUE, force=FALSE, ...)

## Don't use the below: ## S3 method for class 'System': findGhostscript(static, updateRGSCMD=TRUE, firstOnly=TRUE, force=FALSE, ...)

Arguments

updateRGSCMD
If TRUE and Ghostscript is found, then the system environment variable R_GSCMD is set to the (first) path found. This variable is used by the bitmap() device.
firstOnly
If TRUE, only the first executable is returned.
force
If TRUE, existing R_GSCMD is ignored, otherwise not.
...
Not used.

Value

  • Returns a character vector of full pathnames where Ghostscript executable are found.

See Also

Sys.getenv(). dev2bitmap. For more information see System.

Examples

Run this code
print(System$findGhostscript())

Run the code above in your browser using DataLab