Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Vladimir Dergachev
Hi Luc, On Tue, 12 Nov 2024, Luc De Wilde wrote: Dear Vladimir, thank you for your reply. The model syntax is not simple though and the parser needs to look at the meaning in SEM terms to accept or reject certain things. What do you mean by "SEM terms" ? I have not seen a situation yet t

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Ivan Krylov via R-package-devel
В Tue, 12 Nov 2024 21:09:54 + Luc De Wilde пишет: > I have attached a debugger (from Visual Studio) to the R process, > which gives me the message "A breakpoint instruction (__debugbreak() > statement or similar call) was executed in rsession-utf8.exe. > > When I go to the dll module in the

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Luc De Wilde
Dear Ivan, Thank you for your reply! The error occurs on my local machine(s), where the dll is always reproduced by the "install package". I have attached a debugger (from Visual Studio) to the R process, which gives me the message "A breakpoint instruction (__debugbreak() statement or similar

Re: [R-pkg-devel] Possible false negative for compiled C++ code in CRAN checks

2024-11-12 Thread Ivan Krylov via R-package-devel
В Tue, 12 Nov 2024 17:37:40 + Mauricio Vargas Sepulveda пишет: > I re-sent my package and I still see: > > 1. > https://win-builder.r-project.org/incoming_pretest/redatam_2.0.3_20241112_165458/specialChecks/clang-san/outputs.txt I understand this doesn't feel like progress, but this time

Re: [R-pkg-devel] CRAN build error on Windows

2024-11-12 Thread Dirk Eddelbuettel
On 12 November 2024 at 10:47, Dirk Eddelbuettel wrote: | | On 12 November 2024 at 12:40, Pepijn de Vries wrote: | | "Cannot create temporary file in D:\temp\2024_11_12_ 1_50_00_12637\: No such file or directory" | | Based on your quote and the log [1] it looks like you have a space in the | di

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Ivan Krylov via R-package-devel
В Tue, 12 Nov 2024 14:06:53 + Luc De Wilde пишет: > The package with C++ code is in https://github.com/lucdw/lavaanC.  > > When testing with a bunch of models, there is one model that causes > an abort of the R session in RStudio (on Windows), but in the R > console or in a batch job it cau

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Luc De Wilde
Dear Vladimir, thank you for your reply. The model syntax is not simple though and the parser needs to look at the meaning in SEM terms to accept or reject certain things. Moreover, this is only a first step and later other calculations need to be done in C++, which is why I find it important

Re: [R-pkg-devel] Possible false negative for compiled C++ code in CRAN checks

2024-11-12 Thread Mauricio Vargas Sepulveda
Dear R Developers, I hope you are doing well. I re-sent my package and I still see: 1. https://win-builder.r-project.org/incoming_pretest/redatam_2.0.3_20241112_165458/specialChecks/clang-san/outputs.txt 2. https://win-builder.r-project.org/incoming_pretest/redatam_2.0.3_20241112_165458/spec

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Vladimir Dergachev
Hi Luc, The standard tools for writing parsers are "flex" and "bison" - they generate code automatically and so can save you a lot of effort. For language with simple syntax you can get away with just using "flex". Here are some examples: Flex: https://westes.github.io/flex/manual/Sim

Re: [R-pkg-devel] CRAN build error on Windows

2024-11-12 Thread Dirk Eddelbuettel
On 12 November 2024 at 12:40, Pepijn de Vries wrote: | "Cannot create temporary file in D:\temp\2024_11_12_ 1_50_00_12637\: No such file or directory" Based on your quote and the log [1] it looks like you have a space in the directory name. Windows can accommodate these but you must then quote

Re: [R-pkg-devel] CRAN build error on Windows

2024-11-12 Thread Dirk Eddelbuettel
On 12 November 2024 at 12:40, Pepijn de Vries wrote: | "Cannot create temporary file in D:\temp\2024_11_12_ 1_50_00_12637\: No such file or directory" Based on your quote and the log [1] it looks like you have a space in the directory name. Windows can accommodate these but you must then quote

Re: [R-pkg-devel] Possible false negative for compiled C++ code in CRAN checks

2024-11-12 Thread Mauricio Vargas Sepulveda
Dear Prof. Dr. Kryov, Thanks a lot. Apologies if the email has an odd format, I have a modified Outlook UI that makes everything "curious". After taking each of the suggestions, now I get this with Clang-ASAN on R-Hub: > 0 errors | 0 warnings | 2 note > Package was archived on CRAN > CRAN repo

[R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Luc De Wilde
Dear R package developers, I'm helping with the development of the lavaan package (see https://lavaan.ugent.be/) and currently writing a C++ version of the parser of the model syntax in lavaan. The package with C++ code is in https://github.com/lucdw/lavaanC.  When testing with a bunch of mod

[R-pkg-devel] CRAN build error on Windows

2024-11-12 Thread Pepijn de Vries
Hi r-package-devel team, I'm author of the ProTrackR2 package and have recently submitted a new release to CRAN. It builds without problems on all operating systems, except for Windows: https://cran.r-project.org/web/checks/check_results_ProTrackR2.html At first I thought it might be a problem

Re: [R-pkg-devel] Possible false negative for compiled C++ code in CRAN checks

2024-11-12 Thread Ivan Krylov via R-package-devel
В Tue, 12 Nov 2024 04:02:17 + Mauricio Vargas Sepulveda пишет: > For v2.0.3 I implemented a full refactor, where I simplified the code > considerably while trying to solve what looks to be a false positive. > > Now I implemented a "patch" based on the suggestion: I see the change on GitHub

Re: [R-pkg-devel] Found the following HTML validation problems: in R CMD check --as-cran

2024-11-12 Thread Spencer Graves
Hi, Ivan: Thanks very much. On 11/12/24 02:03, Ivan Krylov wrote: В Tue, 12 Nov 2024 01:53:08 -0600 Spencer Graves пишет: In running "R CMD check --as-cran Ecfun_0.3-5.tar.gz" on my local macOS 15.0.1 system, 00check.log contains "Found the following HTML validation pro

Re: [R-pkg-devel] Found the following HTML validation problems: in R CMD check --as-cran

2024-11-12 Thread Ivan Krylov via R-package-devel
В Tue, 12 Nov 2024 01:53:08 -0600 Spencer Graves пишет: > In running "R CMD check --as-cran Ecfun_0.3-5.tar.gz" on my > local macOS 15.0.1 system, 00check.log contains "Found the following > HTML validation problems:" followed by 501 lines like the following When you run `tidy --version`