Running 'testthat.R' [2s/3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rcreds)
  > 
  > test_check("rcreds")
  Will set (and possible create) three subfolders in the parent_folder
       /tmp/RtmpoJs3dS
                     |-  /db_credential_files/
                     |-  /credential_files/
                     |-  /key_files/
  
  -- 1. Failure: Checking Overwriting Abilities (@test-TODOs.R#54)  --------------
  `read_credentials_from_file()` threw an error with unexpected message.
  Expected match: "^Could not decrypt the file. This is probably due to the wrong key being used."
  Actual message: "Parsing the text failed with the following error:\n\nError : parse error: unallowed token at this point in JSON text\n                                       ,Â»Ãœc\022Ã°d ~eÂ\2323Â­Â\234Y[K\026\035\025ÃžmÂ\202\n                     (right here) ------^\n\n"
  Backtrace:
   1. testthat::expect_error(read_credentials_from_file(), "^Could not decrypt the file. This is probably due to the wrong key being used.")
   6. rcreds::read_credentials_from_file()
  
  Setting the default rcreds folder to '/tmp/RtmpoJs3dS'
  Will set (and possible create) three subfolders in the parent_folder
       /tmp/RtmpoJs3dS/.rcreds
                             |-  /db_credential_files/
                             |-  /credential_files/
                             |-  /key_files/
  
  Key File did not exist and was created in '/tmp/RtmpoJs3dS/.rcreds/key_files/.crypt_key.rds'
  Will set (and possible create) three subfolders in the parent_folder
       /tmp/RtmpoJs3dS/.rcreds
                             |-  /db_credential_files/
                             |-  /credential_files/
                             |-  /key_files/
  
  Clearing default rcreds_key_folder, which was previously set to  '/tmp/RtmpoJs3dS/.rcreds/key_files' 
  Setting the default rcreds key folder to '/tmp/RtmpoJs3dS/keys/some/sub/folder'
  Setting the default rcreds key folder to '/tmp/RtmpoJs3dS/keys/some/sub/folder/with_slash/'
  Clearing default rcreds  folder, which was previously set to  '/tmp/RtmpoJs3dS/.rcreds/credential_files' 
  Clearing default rcreds db folder, which was previously set to  '/tmp/RtmpoJs3dS/.rcreds/db_credential_files' 
  Setting the default rcreds db folder to '/tmp/RtmpoJs3dS/db/some/sub/folder'
  Setting the default rcreds db folder to '/tmp/RtmpoJs3dS/db/some/sub/folder/with_slash/'
  Clearing default rcreds  folder, which was previously not set 
  Clearing default rcreds  folder, which was previously not set 
  Setting the default rcreds folder to '/tmp/RtmpoJs3dS/credentials/some/sub/folder'
  Setting the default rcreds folder to '/tmp/RtmpoJs3dS/credentials/some/sub/folder/with_slash/'
  Folder does not exist. Creating it. 
  Setting the default rcreds folder to '/tmp/RtmpoJs3dS/testing/default'
  == testthat results  ===========================================================
  [ OK: 121 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 1 ]
  1. Failure: Checking Overwriting Abilities (@test-TODOs.R#54) 
  
  Error: testthat unit tests failed
  Execution halted