deribit/deribit-api-clients

Issue with R version of the OpenAPI install

SatoshiReport opened this issue · 2 comments

I am trying to install openapi for R and I do this from github as building from a local repository was not working.

> install_github("deribit/deribit-api-clients/r")
Downloading GitHub repo deribit/deribit-api-clients@master
✔  checking for file ‘/tmp/RtmpLEVuEC/remotes6bc1452288f9/deribit-deribit-api-clients-957367f/r/DESCRIPTION’ (414ms)
─  preparing ‘openapi’:
✔  checking DESCRIPTION meta-information ... OK
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘openapi_1.0.0.tar.gz’
   
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘openapi’ ...
** R
Error in parse(outFile) : bad value
ERROR: unable to collate and parse R files for package ‘openapi’
* removing ‘/usr/local/lib/R/site-library/openapi’
Error in i.p(...) : 
  (converted from warning) installation of package ‘/tmp/RtmpLEVuEC/file6bc16f7288ba/openapi_1.0.0.tar.gz’ had non-zero exit status

I looked for a respolution online but came up blank. Any ideas?

Do you have a code snippet or command with which I can reproduce the error? Unfortunately am not very proficient with R's toolbox, but if you have more info about how you arrived at this error it would be very appreciated. Thanks

I was able to reproduce the error by running

> devtools::install_github('deribit/deribit-api-clients/r@master')

It appears to be that one of the files in the R client has a character which is not parseable by the R interpreter, hence leading to the bad value exception. Now the challenge is in locating in which exact file and line the parser failed... This might provide more info