Re: [Rcpp-devel] uniroot problem

2019-12-28 Thread Jeff Newmiller
I get 230 for all three runs, which looks right to me. I don't understand your concern .. maybe you need to plot Fn yourself. On December 28, 2019 7:48:27 PM PST, Shaami wrote: >Any suggestion plz. What could be missing that I donot get function >root to >be zero at some points? > >On Tue, 24 De

Re: [Rcpp-devel] uniroot problem

2019-12-28 Thread Shaami
Any suggestion plz. What could be missing that I donot get function root to be zero at some points? On Tue, 24 Dec 2019, 1:45 PM Shaami, wrote: > Dear Friends > > Could you please help with the following example? I do not get function > value at zero using uniroot() in R. Could you suggest somet

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Balamuta, James Joseph
Fatima, I think the ~/.R/Makevars didn’t get created correctly. In particular, the ${R_HOME} path didn’t get extended: > -Wl,-rpath,/lib /lib/libc++abi.1.dylib Could you modify the ~/.R/Makevars file and ensure it has: # clang: start CFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/M

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Fatima Batool
That's nothing extra, it's the first step in the link. On Sat, Dec 28, 2019 at 2:14 PM Simon Urbanek wrote: > Did you follow the instructions I sent you? > > Sent from my iPhone > > On Dec 28, 2019, at 12:38, Fatima Batool wrote: > >  > Hi Drik and Simon, > > thanks you for the help! > > I hav

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Simon Urbanek
Did you follow the instructions I sent you? Sent from my iPhone > On Dec 28, 2019, at 12:38, Fatima Batool wrote: > >  > Hi Drik and Simon, > > thanks you for the help! > > I have followed all the instructions Drik mentioned here: > https://thecoatlessprofessor.com/programming/cpp/r-compile

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Fatima Batool
Hi Drik and Simon, thanks you for the help! I have followed all the instructions Drik mentioned here: *https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/ * and then run a hello

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Simon Urbanek
Fatima, it means you don't have command line tools installed (they are independent of Xcode and Apple OS upgrades delete things, unfortunately) - try sudo xcode-select —install That should fix the error you see. However, Catalina broke more things so you may look at the links Dirk pointed out