Skip to content

Undefined exports #12

@lucavd

Description

@lucavd

Hi, I got this error trying to install the pkg from github. Is there any prob with the export of the function?

Downloading GitHub repo samterfa/openai@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\Luca\AppData\Local\Temp\RtmpM9cJU1\remotes205c280d3682\samterfa-openai-73480e9/DESCRIPTION'
─  preparing 'openai':
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building 'openai_0.0.1.tar.gz'
   
Installing package into ‘C:/Users/Luca/Documents/2023.efsa_inventory/renv/library/R-4.3/x86_64-w64-mingw32’
(as ‘lib’ is unspecified)
- The project is out-of-sync -- use `renv::status()` for details.
* installing *source* package 'openai' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'openai' in namespaceExport(ns, exports):
 undefined exports: create_chat_completions
Error: loading failed
Execution halted
ERROR: loading failed
* removing 'C:/Users/Luca/Documents/2023.efsa_inventory/renv/library/R-4.3/x86_64-w64-mingw32/openai'
Warning messages:
1: In untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
3: In i.p(...) :
  installation of package ‘C:/Users/Luca/AppData/Local/Temp/RtmpM9cJU1/file205c5b137984/openai_0.0.1.tar.gz’ had non-zero exit status```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions