-
Notifications
You must be signed in to change notification settings - Fork 52
vendor path #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pachadotdev
wants to merge
108
commits into
r-lib:main
Choose a base branch
from
pachadotdev:vendoring
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
vendor path #353
Changes from all commits
Commits
Show all changes
108 commits
Select commit
Hold shift + click to select a range
71c2dcc
vendor path
pachadotdev 10d3565
Update tests/testthat/test-vendor.R
pachadotdev da1c84e
fix vendor
pachadotdev e2df430
improve DESCRIPTION change with vendoring
pachadotdev 8845015
replace DESC/Make funs with user msg
pachadotdev 6778095
fix eventual CRAN warning
pachadotdev c90eea4
testthat 3e
pachadotdev 2729233
add and test unvendor function
pachadotdev fd99010
implement 25% of #297
pachadotdev b1d8858
almost complete implementation of r_complex
pachadotdev 628ae8f
UPDATE AS.HPP
pachadotdev ca9c11e
temporary as.hpp
pachadotdev 17ba519
handle cpp complex <-> R sexp
pachadotdev ea98a87
almost ok, push_back for complexes is pending
pachadotdev 8e044f6
trying to add push_back for cplx
pachadotdev 49ee179
trying to get push_back for cplx to work :\
pachadotdev b003c28
complex tests work, BUT THERE IS A CATCH ERROR I DO NOT GET
pachadotdev e642aa6
passed all test for cplx :D
pachadotdev d42f512
complex_matrix<>
pachadotdev f7ead22
cpp11test: add rcpp to imports + .here to .Rbuildignore
pachadotdev 66b4ade
revert complexes_matrix<> for now
pachadotdev f5d6054
clang format
pachadotdev 713f147
bool -> int + using transform for bool -> double
pachadotdev 127e700
Merge branch 'main' into testthat3e
pachadotdev f7383a0
fix #273
pachadotdev 73231a5
use sexp instead of auto for C++ older than 14
pachadotdev 812e6ce
replace auto with attribute_proxy<V>
pachadotdev 5217ded
use SEXP
pachadotdev 1b51d23
test again
pachadotdev b919f41
try to fix build error on gh actions
pachadotdev a91c3ed
Define SET_COMPLEX_ELT if not defined
pachadotdev 814b408
implement @stephematician suggestion
pachadotdev 511a7ed
re-add complex matrix with tests
pachadotdev bbee709
fix #406
pachadotdev 496dd6b
borrow from @traversc's push_back_fast
pachadotdev 008ab7c
add benchmarks
pachadotdev f717e3d
fix unvendor example
pachadotdev 6f84867
implement #431
pachadotdev 2d4bbb5
implement #432
pachadotdev 9673bb2
implement #435
pachadotdev 6dbf339
fix pkgdown error
pachadotdev a03a126
draft map -> list/sexp
pachadotdev aaed104
ordered and unordered C++ maps are converted to R lists
pachadotdev 70c68df
template map to list conversion
pachadotdev 9ebcf41
fix sum rcpp error on Unix systems (cpp11test)
pachadotdev fb3583f
roxygen comments on cpp side (works ok with 1 roxygenised function pe…
pachadotdev 14531db
almost there with rx/no rx in the same file
pachadotdev c750115
correctly handles roxygen in cpp files
pachadotdev fb848c6
revert some styler changes to make the changes more clear
pachadotdev 17cac60
fix multi line roxygen examples
pachadotdev 7a436d6
add roxygen example to documentation
pachadotdev a781c99
consider the case where a file does not exist
pachadotdev f717713
do not roxygenize chunk in vignette
pachadotdev fbb365f
workaround for roxygen comments in cpp chunks
pachadotdev c91f4ef
revert to eval = F
pachadotdev b1d8ecd
implement #312
pachadotdev 7a72ec9
implement fix for #445
pachadotdev fcb7756
only one cstdlib in data_frame.hpp
pachadotdev 012e4e0
use inline constexpr for doubles/integers/list/logicals/strings
pachadotdev 2be6542
use noexcept in protect/sexp
pachadotdev 91c3bd4
noexcept in operator SEXP (attribute proxy)
pachadotdev 472f40f
+ noexcept
pachadotdev 4209cf0
clang format
pachadotdev b0b3f47
rollback noexcept
pachadotdev 8fdaaef
clang format
pachadotdev a80ae91
fix typos
pachadotdev ff8e314
fix r_Vector
pachadotdev f7fd0e0
fix strings
pachadotdev e0229d5
rollback strings
pachadotdev ddf5300
rollback strings
pachadotdev 9851423
use a lamba to unwind protect around the loop
pachadotdev c016918
Use values added to a vector with push_back immediately
pachadotdev 8ee112a
fix clang format
pachadotdev 8093e12
llvm formatt
pachadotdev 6783944
Global symbol visibility
pachadotdev 5114411
clang ofrmat
pachadotdev acdcf61
clang format
pachadotdev e340f78
clang format 12
pachadotdev 3c6e5c6
clang fmt
pachadotdev 224b9af
check unix tests
pachadotdev 72d2f37
Merge pull request #1 from pachadotdev/issue460
pachadotdev 36ef9b7
Merge pull request #2 from pachadotdev/issue453
pachadotdev 2c56e1a
Merge pull request #3 from pachadotdev/issue452
pachadotdev 7256c37
Merge pull request #4 from pachadotdev/issue406
pachadotdev 8e7a80d
Merge pull request #5 from pachadotdev/issue297
pachadotdev 66d37b1
Merge pull request #6 from pachadotdev/compilationspeed
pachadotdev 1487985
Merge pull request #7 from pachadotdev/nullable_extptr
pachadotdev 5eff766
Merge branch 'main' into roxygen
pachadotdev bd30629
Merge pull request #8 from pachadotdev/roxygen
pachadotdev b63d96c
Merge branch 'main' into 419
pachadotdev a33c8b5
Merge pull request #9 from pachadotdev/419
pachadotdev 4441386
Merge branch 'main' into vignettes
pachadotdev 49953b9
Merge pull request #10 from pachadotdev/vignettes
pachadotdev b041c48
Merge branch 'main' into named_arg_utf8
pachadotdev 67f3fb1
Merge pull request #11 from pachadotdev/named_arg_utf8
pachadotdev 55fd0f0
Merge branch 'main' into vmaxgetset
pachadotdev b44690d
Merge pull request #12 from pachadotdev/vmaxgetset
pachadotdev 6b36c1a
Merge branch 'main' into 3Fto1T
pachadotdev 926b078
Merge pull request #13 from pachadotdev/3Fto1T
pachadotdev fbded54
Merge branch 'main' into matrix_attr
pachadotdev 5e945fc
Merge pull request #14 from pachadotdev/matrix_attr
pachadotdev b5e5e34
Merge branch 'main' into complex
pachadotdev a107194
Merge pull request #15 from pachadotdev/complex
pachadotdev fd74b51
Merge branch 'main' into 255
pachadotdev e62c914
Merge pull request #16 from pachadotdev/255
pachadotdev bd5d79b
Merge branch 'main' into testthat3e
pachadotdev e350bbf
Merge pull request #17 from pachadotdev/testthat3e
pachadotdev 33d04f4
Merge branch 'main' into vendoring
pachadotdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#' Unvendor the cpp11 dependency | ||
#' | ||
#' This function removes the vendored cpp11 headers from your package and | ||
#' restores the `LinkingTo: cpp11` field in the DESCRIPTION file if it was removed. | ||
#' | ||
#' @inheritParams cpp_register | ||
#' @return The file path to the unvendored code (invisibly). | ||
#' @export | ||
#' @examples | ||
#' # create a new directory | ||
#' dir <- tempfile() | ||
#' dir.create(dir) | ||
#' | ||
#' # vendor the cpp11 headers into the directory | ||
#' cpp_vendor(dir) | ||
#' | ||
#' # unvendor the cpp11 headers from the directory | ||
#' cpp_unvendor(dir) | ||
#' | ||
#' list.files(file.path(dir, "inst", "include", "cpp11")) | ||
#' | ||
#' # cleanup | ||
#' unlink(dir, recursive = TRUE) | ||
cpp_unvendor <- function(path = ".") { | ||
new <- file.path(path, "inst", "include", "cpp11") | ||
|
||
if (!dir.exists(new)) { | ||
stop("'", new, "' does not exist", call. = FALSE) | ||
} | ||
|
||
unlink(new, recursive = TRUE) | ||
|
||
cpp11_hpp <- file.path(dirname(new), "cpp11.hpp") | ||
if (file.exists(cpp11_hpp)) { | ||
unlink(cpp11_hpp) | ||
} | ||
|
||
invisible(new) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this now need to show the new path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that line is added automatically, and uses the path the user wants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i reallize i never pushed that change, done now