R.utils (version 1.25.2)

System$findGhostscript: Searches for the ghostview binary on the current system

Description

Searches for the ghostview binary on the current system.

Currently only Windows and Unix is supported.

Usage

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

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

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.
...
Not used.

Value

  • Returns a vector of full pathnames where ghostscript is 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 DataCamp Workspace