Open cielavenir opened 2 years ago
I tested this PR on my computer and this works perfectly.
Unfortunately, the logs have been deleted so we cannot know why the checks failed. Is there anything we could do to help so that this PR could be accepted?
@gaborcsardi could you rerun roxygen2 onto this branch? I don't know how.
/document
Thank you @gaborcsardi
@DanChaltiel now doc is sane, much closer to the goal
But why windows CI is failing? Is this libarchive binary ('s password) issue or not...?
Is is possible that the libarchive Windows build from rtools42 is missing something for password support?
I tried something but failing so far
Another interesting thing is that https://github.com/cielavenir/miniarc can handle encryption on Windows build. Note that I loaded libarchive-13.dll from https://packages.msys2.org/package/mingw-w64-x86_64-libarchive , which should be the same source as rwinlib libarchive.
AFAICT we do not currently use rwinlib on the CI, but use the libarchive static lib from rtools42. Many dependencies of libarchive are optional, so maybe that build does not have everything that is needed?
Let's revisit after https://github.com/r-lib/archive/pull/80
It is now ready.
seems like I'm still new to R binding (well, I just took a look on this as an extension from https://github.com/r-lib/archive/pull/72 ).
cpp11::strings password;
if (password.size() > 0) {
call(archive_write_set_passphrase, out, std::string(password[0]).c_str());
}
umm that is when password is character()
, not NA_character_
.
@gaborcsardi @jimhester
Let me explain the situation again.
I can add the password feature, but the test does not pass on Windows because archive_write_files is broken. I asked you to fix it but I don't get replies. I fixed it by my own but it is not accepted due to coding style. But what I do is correcting broken coding style of r-lib/archive:master.
Do note that currently test-archive_write_files.R is wrongly passing on Windows.
You don't fix, my fix is not accepted, hence now I think of skipping password test on Windows. Please perform some action(s). I'm serious.
I think of skipping password test on Windows
done. really heartbreak.
closes #8 (unless you meant providing callback)