Skip to content

Commit

Permalink
remove vendoring to check Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
pachadotdev committed Feb 19, 2024
1 parent c4cd78a commit cdcb1d8
Show file tree
Hide file tree
Showing 665 changed files with 27 additions and 182,971 deletions.
5 changes: 5 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Authors@R: c(
comment = c(ORCID = "0000-0003-1017-7574"))
)
Imports:
cpp11,
cpp11armadillo (>= 0.2),
data.table,
Formula,
generics,
Expand All @@ -35,5 +37,8 @@ LazyData: true
RoxygenNote: 7.3.1
Encoding: UTF-8
NeedsCompilation: yes
LinkingTo: cpp11, cpp11armadillo
VignetteBuilder: knitr
Config/testthat/edition: 3
Remotes:
pachadotdev/cpp11armadillo
11 changes: 2 additions & 9 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,10 @@ numerical stability in the estimation process.

The software heavily borrows from Gaure 20213 and Stammann 2018 works on the
OLS and IWLS estimator with large k-way fixed effects (i.e., the lfe and alpaca
packages). The differences are that Capybara does not use C nor Rcpp code, all
the code is vendored from the cpp11 and
packages). The differences are that Capybara does not use C nor Rcpp code,
instead it uses the cpp11 and
[cpp11armadillo](https://github.com/pachadotdev/cpp11armadillo) packages.

Cpp11 nor cpp11armadillo are listed as dependencies, because of the vendoring
option. This decision gives you full control over the code, and you can
eventually tweak any part of the code to your needs. For example, if you clone
this package, you can change the line `#define ARMA_OPENMP_THREADS 8` line
in `src/vendor/armadillo/config.hpp` to set four, sixteen, or any other number
of threads/cores for parallelization.

The summary tables are nothing like R's default and borrow from Stata outputs.
I have also provided integrations with broom to facilitate the inclusion of
statistical tables in Quarto/Jupyter notebooks.
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,10 @@ compromising numerical stability in the estimation process.
The software heavily borrows from Gaure 20213 and Stammann 2018 works on
the OLS and IWLS estimator with large k-way fixed effects (i.e., the lfe
and alpaca packages). The differences are that Capybara does not use C
nor Rcpp code, all the code is vendored from the cpp11 and
nor Rcpp code, instead it uses the cpp11 and
[cpp11armadillo](https://github.com/pachadotdev/cpp11armadillo)
packages.

Cpp11 nor cpp11armadillo are listed as dependencies, because of the
vendoring option. This decision gives you full control over the code,
and you can eventually tweak any part of the code to your needs. For
example, if you clone this package, you can change the line `#define
ARMA_OPENMP_THREADS 8` line in `src/vendor/armadillo/config.hpp` to set
four, sixteen, or any other number of threads/cores for parallelization.

The summary tables are nothing like R’s default and borrow from Stata
outputs. I have also provided integrations with broom to facilitate the
inclusion of statistical tables in Quarto/Jupyter notebooks.
Expand Down
3 changes: 1 addition & 2 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
intro: intro.html
last_built: 2024-02-18T23:30Z
last_built: 2024-02-19T00:17Z

4 changes: 2 additions & 2 deletions docs/reference/apes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/bias_corr.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/feglm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/felm.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/fenegbin.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/fepoisson.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/00_main.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// #include <omp.h>

#include <algorithm>
#include <armadillo.hpp>
#include <cmath>
#include <iostream>
#include <cpp11.hpp>
#include <cpp11armadillo.hpp>
// #include <iostream>
#include <vector>

#include "cpp11.hpp"
#include "cpp11armadillo.hpp"

using namespace arma;
using namespace cpp11;
using namespace std;
8 changes: 2 additions & 6 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
PKG_CPPFLAGS = -I vendor/
# PKG_CPPFLAGS = -UDEBUG -g -I vendor/

# USE -O0 for debugging
# USE -O3 for production code
# PKG_CXXFLAGS = -Wall -O0 -pedantic
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

8 changes: 2 additions & 6 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
PKG_CPPFLAGS = -I vendor/
# PKG_CPPFLAGS = -UDEBUG -g -I vendor/

# USE -O0 for debugging
# USE -O3 for production code
# PKG_CXXFLAGS = -Wall -O0 -pedantic
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Loading

0 comments on commit cdcb1d8

Please sign in to comment.