Rcpp error in Rstudio while compiling

Hi. I am trying to make source code with rcpp.
When I compile cpp code in R, not in Rstudio, it works well.
However, when I try the cpp code in Rstudio, the code shows an error like below

I use Mac with M1 and install R and gfortran with the instructions in the link:

Moreover, I want to use lldb which is debugger for c++, I installed the R from:

Thanks for your suggestion to solve the issue

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.