Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-09-06 Thread Christophe Bousquet via R-help
Sent from ProtonMail, encrypted email based in Switzerland. --- Original Message --- On Monday, September 4th, 2023 at 17:13, Ivan Krylov wrote: > В Mon, 04 Sep 2023 12:05:38 + > Christophe Bousquet chr_bousq...@protonmail.com пишет: > > > I will try compiling R from source

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-09-04 Thread Christophe Bousquet via R-help
> If you're up to compiling R from source [] and using a symbolic > debugger [**] to step through Rcmd.exe, we could try to do that. > Murphy's law says that the copy of Rcmd.exe you'll build from source > will work well and refuse to reproduce the problem for you to > investigate. (Beyond that, th

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-09-01 Thread Christophe Bousquet via R-help
> Is there a "C:\Program Files\R\R-4.3.1\bin\x64\Rterm.exe"? If you > launch it, does it present an R command line? Yes, this file exists and when I launch it, a new functionally-working R terminal window pops up. > I'm suspecting that Rcmd.exe somehow messes up when it tries to locate > Rterm.

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-31 Thread Christophe Bousquet via R-help
> This can be considered good news. You have just successfully performed > the job that is normally done by R CMD SHLIB when installing source > packages or running inline C++ code. The environment variables, at > least inside your running R session, are completely fine. > > Now we need to find out

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-31 Thread Christophe Bousquet via R-help
> So starting a new Rcmd.exe process fails for some reason. > > If you take the same R session where the environment variables are > right and Sys.which() resolves Make and GCC and try to run > tools:::.shlib_internal(c('-n', 'hello.c')) or > tools:::.shlib_internal('hello.c'), does it do somethin

Re: [R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-31 Thread Christophe Bousquet via R-help
> When installing packages containing code to compile, R eventually calls > R > CMD SHLIB. Same thing happens with inline C++: it gets stored in a > temporary file, compiled into a *.dll using R CMD SHLIB and then loaded > using dyn.load(). > > Write the following into a file named hello.c: > >

[R] Problems with installing R packages from source and running C++ in R, even on fresh R installation

2023-08-29 Thread Christophe Bousquet via R-help
Dear all, I am having issues with R that are giving me headaches since a few weeks. Basically, I cannot: (i) install packages from source (ii) run packages relying on C++ I really do not understand how and why this is happening [it was working perfectly fine before and I cannot determine when th