Perhaps the following is more concise.
```r
system 'aragorn -h |grep -q ARAGORN'
```