-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Thanks for writing this package! I'm getting the following error thrown during compilation under R version 4.3.1 (2023-06-16) on Ubuntu 22.04.3 LTS. Suggestions?
write_sheet_file_.cpp: In function ‘cpp11::r_string write_sheet_file_list_(const string&, const cpp11::list_of<cpp11::data_frame>&, const string&, bool, bool, bool, bool, const string&, const string&)’:
write_sheet_file_.cpp:158:21: error: invalid use of incomplete type ‘struct SEXPREC’
158 | write_df(x[i], sheet_names[i], row_names, col_names, na_as_string, padding, xml_file);
| ^
In file included from /usr/lib/R/site-library/cpp11/include/cpp11/R.hpp:13,
from /usr/lib/R/site-library/cpp11/include/cpp11.hpp:3,
from write_sheet_file_.h:3,
from write_sheet_file_.cpp:1:
/usr/share/R/include/Rinternals.h:180:16: note: forward declaration of ‘struct SEXPREC’
180 | typedef struct SEXPREC *SEXP;
| ^~~~~~~
write_sheet_file_.cpp:158:21: error: invalid initialization of reference of type ‘const cpp11::data_frame&’ from expression of type ‘SEXPREC’
158 | write_df(x[i], sheet_names[i], row_names, col_names, na_as_string, padding, xml_file);
| ~~~^
write_sheet_file_.cpp:54:40: note: in passing argument 1 of ‘void write_df(const cpp11::data_frame&, const string&, bool, bool, bool, bool, std::ofstream&)’
54 | void write_df(const cpp11::data_frame& x, const std::string& sheet_name, const bool row_names, const bool col_names,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^
make: *** [/usr/lib/R/etc/Makeconf:200: write_sheet_file_.o] Error 1
ERROR: compilation failed for package ‘readODS’
* removing ‘/home/shokin/R/x86_64-pc-linux-gnu-library/4.3/readODS’
The downloaded source packages are in
‘/tmp/RtmpovBwdw/downloaded_packages’
Warning message:
In install.packages("readODS", repos = "https://ropensci.r-universe.dev") :
installation of package ‘readODS’ had non-zero exit status
Metadata
Metadata
Assignees
Labels
No labels