Issues updating rows with Rlabkey

LabKey Support Forum (Inactive)
Issues updating rows with Rlabkey awilson  2024-05-10 08:51
Status: Active
 

yes of course. here is the code i am using. I have success running the code within network but outside of network does not work for insertRows. my .netrc may not be correct. i have it in the base home folder. should it be in the labkey home or the R home instead? Seems strange a pull would work outside network but not a push.

selectRows:
  labkey.data<-labkey.selectRows(labkey.setDefaults(apiKey="apikeyapikeyapikeyapikey"),
  baseUrl="http://xxx.xxx.xx.xxx:PORT", 
  folderPath="/this/path/study", 
  schemaName="lists", 
  queryName="data")


insertRows:
  labkey.data<-labkey.insertRows(labkey.setDefaults(apiKey="apikeyapikeyapikeyapikey"),
  baseUrl="http://xxx.xxx.xx.xxx:PORT", 
  folderPath="/this/path/study", 
  schemaName="lists", 
  queryName="otherDataSameJSON",
  toInsert=labkey.data)