Running 'testthat.R' [33s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(PubChemR)
  > 
  > test_check("PubChemR")
  The file has been saved to 'D:\temp\Rtmp4kkqks/aspirin.json'
  The file has been saved to 'D:\temp\Rtmp4kkqks/aspirin.json'
  The file has been saved to 'D:\temp\Rtmp4kkqks/aspirin.json'
  The file has been saved to 'D:\temp\Rtmp4kkqks/aspirin.json'
  The file has been saved to 'D:\temp\Rtmp4kkqks/aspirin.sdf'
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Server error: (503) Service Unavailable
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Client error: (404) Not Found
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Client error: (400) Bad Request
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Client error: (404) Not Found
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Client error: (400) Bad Request
  trying URL 'https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/aspirin/SDF'
  downloaded 3641 bytes
  
    SDF file to save --> 'file.sdf'
  
    Saved into folder --> D:\temp\Rtmp4kkqks
  
    Completed...
  
  trying URL 'https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2244/SDF'
  downloaded 3641 bytes
  
    SDF file to save --> 'file.sdf'
  
    Saved into folder --> D:\temp\Rtmp4kkqks
  
    Completed...
  
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Client error: (404) Not Found
  Error in sidsList[[i]][[j]]$CID : 
    $ operator is invalid for atomic vectors
  An error occurred: error in evaluating the argument 'content' in selecting a method for function 'fromJSON': HTTP error Client error: (404) Not Found
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 134 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-get_aids.R:14:3'): pulling aids via 'name' is succesfull ─────
  all(state1, state2) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 134 ]
  Error: Test failures
  Execution halted