title: Secure Password Storage for R on (non-GUI) Linux Server
body: <p>I'm working on a small team trying to put an R script onto an AWS EC2 instance that has RHEL7 installed. The problem is the library "keyring" which we use on our laptops doesn't work without a compatible keyring daemon, which I have been unable to get working on the EC2 instance.</p>
  
  <pre><code>[ec2-user@ip-10-XX-XX-XXX ~]$ gnome-keyring-daemon -r
  ** Message: couldn't connect to dbus session bus: Cannot autolaunch D-Bus without X11 $DISPLAY
  ** Message: Replacing daemon, using directory: /run/user/1000/keyring
  GNOME_KEYRING_CONTROL=/run/user/1000/keyring
  SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
  [ec2-user@ip-10-XX-XX-XXX ~]$ R
  ...
  [Previously saved workspace restored]
  
  &gt; keyring::key_set('test', 'test')
  PASSWORD: ****
  Error in warn_for_keyring(keyring) :
    argument "keyring" is missing, with no default
  In addition: Warning message:
  In default_backend_auto() :
    Selecting ‘env’ backend. Secrets are stored in environment variables
  </code></pre>
  
  <p>For now we're using an R environment file, but we'd prefer some formed of hashed storage. Can anyone recommend a method for secure key storage that we can use in production?</p>