File: XlsWorkBook.cpp

package info (click to toggle)
r-cran-readxl 1.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,488 kB
  • sloc: ansic: 4,565; cpp: 3,401; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <Rcpp.h>

#include "XlsWorkBook.h"
using namespace Rcpp;

// [[Rcpp::export]]
CharacterVector xls_sheets(std::string path) {
  XlsWorkBook wb(path);
  return wb.sheets();
}

// [[Rcpp::export]]
std::set<int> xls_date_formats(std::string path) {
  return XlsWorkBook(path).dateFormats();
}