Debugging a C file compiled from R

Hi there.

I compiled a C file from R in RStudio with the following 2 lines of code:

system2('R', c('CMD', 'SHLIB', 'My_C_File.c'))
dyn.load(paste0("My_C_File", .Platform$dynlib.ext))

Now, when I run the compiled C code, I have a nasty bug that occurs apparently randomly and crashes RStudio with no explanation on the cause of this crash.

How can I debug my C code from RStudio?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.