Bash Set Variable To Output Of Functions In R