R Under development (unstable) (2023-11-22 r85609 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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\RtmpUnwdCC/aspirin.json' The file has been saved to 'D:\temp\RtmpUnwdCC/aspirin.json' The file has been saved to 'D:\temp\RtmpUnwdCC/aspirin.json' The file has been saved to 'D:\temp\RtmpUnwdCC/aspirin.json' The file has been saved to 'D:\temp\RtmpUnwdCC/aspirin.sdf' 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\RtmpUnwdCC 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\RtmpUnwdCC 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 0 | WARN 3 | SKIP 0 | PASS 135 ] [ FAIL 0 | WARN 3 | SKIP 0 | PASS 135 ] > > proc.time() user system elapsed 2.76 0.29 24.98