-
Notifications
You must be signed in to change notification settings - Fork 41
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
Compiling on Windows #10
Conversation
Added language annotations to code-blocks.
Look forward to seeing this... |
Yeah. It's a draft for a reason. I'm sorry but I played around with it and tried your suggestions, and it didn't really match exactly what I was seeing. I'll look deeper into it. |
Good luck. Building on windows is definitely a challenge, it seems. We will also need a way to install Rust in the CRAN package. |
I think this package by dirkschumacher should be used for inspiration
atleast: https://github.com/dirkschumacher/blake3
I had hoped that dirk had managed to put it on CRAN, but that does not seem
to be the case.
Claus Wilke halso have a package that uses rust, but isn't on CRAN either;
see https://clauswilke.com/sinab/#installation
We'll see how all of this turns out...
…On Sun, 23 Aug 2020 at 16:08, Andy Thomson ***@***.***> wrote:
Good luck. Building on windows is definitely a challenge, it seems. We
will also need a way to install Rust in the CRAN package.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDVSEH7D3Y62K4RHY3EL3SCEPELANCNFSM4QF3DUTA>
.
|
Those do look promising. There is an AppVeyor script in Dirk's package. I know quite a few people (mostly at pharmas) who use R on windows, so this is quite important. |
It is also incredibly important to me.
I just have to wait for the weekend as I have a tremendous amount of rust
code to write for a paper.
Do we have a discord or similar to just share these small tidbits?
…On Mon, 31 Aug 2020 at 18:59, Andy Thomson ***@***.***> wrote:
Those do look promising. There is an AppVeyor script in Dirk's package.
I know quite a few people (mostly at pharmas) who use R on windows, so
this is quite important.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDVSAJ46KSZHXVAHR2ERDSDPJI3ANCNFSM4QF3DUTA>
.
|
Discord channel now open:
https://discord.gg/gNegZu
…On Wed, Sep 2, 2020 at 11:55 AM CGMossa ***@***.***> wrote:
It is also incredibly important to me.
I just have to wait for the weekend as I have a tremendous amount of rust
code to write for a paper.
Do we have a discord or similar to just share these small tidbits?
On Mon, 31 Aug 2020 at 18:59, Andy Thomson ***@***.***>
wrote:
> Those do look promising. There is an AppVeyor script in Dirk's package.
>
> I know quite a few people (mostly at pharmas) who use R on windows, so
> this is quite important.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#10 (comment)>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAIDVSAJ46KSZHXVAHR2ERDSDPJI3ANCNFSM4QF3DUTA
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL36XHZGRBEV3MIJI34GQDSDYQDHANCNFSM4QF3DUTA>
.
|
Hello, I only just saw this project and this issue/PR. Not sure what the status is, but I'm very excited about any additional effort bringing R and Rust together. Further development of my sinab package depends on this, and I'd rather not have to do everything by myself. To compile on Windows, the installation instructions that come with sinab have worked for a number of people: I also have a working appveyor setup: https://github.com/clauswilke/sinab/blob/master/appveyor.yml You need an appropriate To get a package containing Rust onto CRAN, you need to precompile the Windows library and download on the fly as you build the package on Windows on CRAN. See the discussion here and see an example here: Note: The gifski package is entirely written in Rust and it's available on CRAN, so this is definitely possible: https://cran.r-project.org/web/packages/gifski/index.html |
Hi @clauswilke I was hoping to avoid the two-stage gifski approach of building a I don't currently have a windows or mac machine to try a windows build I am working (rather slowly at the moment) on a Rust package skeleton generator If anyone can contribute a simple example (less than 20 files) of a windows build on Appveyor, |
Keep in mind though that the two-stage approach is only needed for CRAN submission, because their servers currently lack the cargo toolchain. Otherwise installation from source is pretty straightforward. A minimal example with a working appveyor build is available here: https://github.com/r-rust/hellorust One other issue I realized is that there are two distinct compilation scenarios and we need to be clear which one we're talking about: 1. Build an R package that calls Rust code. 2. Build a standalone Rust binary that calls R code. The second scenario is substantially more complex than the first. I'm only talking about the first at this time. |
@CGMossa I'm closing this PR since things now compile on Windows (as far as I understand). If you want to merge the changes to the README, I suggest you make a new PR with a corresponding title. There's other fixes the README needs (e.g., somewhere code and regular text blocks get switched), so such a PR would make a lot of sense. |
Compiling on windows doesn't work.. Attempting to fix that.
Added language annotations to code-blocks.