which previously worked perfectly. However, the output I get now is:
## Warning in system("git config --get remote.origin.url", intern = TRUE):
## running command 'git config --get remote.origin.url' had status 1
However, when I run the git command "git config --get remote.origin.url" in the bash terminal in the folder of the shiny server (/srv/shiny-server/dhub/), I get the expected output:
thanks, your advice was half of the solution! I had to set the correct working directory as you suggested because the markdown file was in a sub-directory.
However, it seems that there was also an issue with dubious ownership. Since I run git commands in the shiny app (ie as "shiny" user), but I cloned the repo as a different user , eg "devusr", git chokes.
I could replicate the error by logging in as "shiny" user with sudo su shiny and executing the git commands.
Git itself noted the problem and suggested as a solution to add an exception: