Is there a way in R to check if a command exists in the operating system?
I know that file.exists(file) can be used to check if a file exists. But what about a command on the system PATH?
(This is with Ubuntu 20.04, R 4.1).
Related:
How to check if object (variable) is defined in R?
How can I check if a directory exists in a Bash shell script?