gpg command not found when using Yubikey

I am trying to configure my Yubikey to sign commits to github. It works when I use the git commit command while in zsh, when I try using the commit button in Rstudio IDE I get the following error:

>>> /usr/bin/git commit -F /var/folders/tx/2w66ttw55715mpr_58r1bjm40000gp/T/RtmpuSpC1s/git-commit-message-4521400409b2.txt
error: cannot run gpg: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object

So it is not finding the gpg program. I have configured Rstudio to use the zsh in Tools > Global Options > Terminal > New terminals open with Zsh. Here is the location of my gpg program:

% which gpg

Any suggestions appreciated.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.