Hi Dirk, Thank you so much for your response. Rcpp is excellent, and I am using it (with OpenMP), and it significantly improved the package (Thank you!). I have tried it on macOS and centos. I was trying to set up a conda environment. There are many HPC clusters that are using old versions of R as well as rstudio. In the past, using conda env helped me to install an updated version of R., But I understand why you do not recommend it. I will prepare a reproducible example and will let you know. Thank you so much.
Best regards, Naeem On Wed, Jul 14, 2021 at 9:55 AM Dirk Eddelbuettel <e...@debian.org> wrote: > > Hi Naeem, > > On 14 July 2021 at 09:41, Naeem Khoshnevis wrote: > | Hi, > | > | I hope this email finds you well. > | I wondered what the best approaches to troubleshooting C++ dependencies > | issues in general and specifically in R are; specifically, those packages > | which are using OpenMP and we want to install on macOS. > > Is this dependencies (plural) or a single core dependency (singular) on a > single OS (macOS) ? Those are different issues. (And Rcpp has no incluence > over what Cupertino (macOS) or Auckland (macOS deployment for R does) -- we > have to play the card we are dealt, and that have always been "issues" and > some HOWTOs and duct tape. On the margin, if this is your question, it may > also be one for r-sig-mac. > > Also, and to make this concrete: Do you have a minimally reproducible > issue? > > | So far, I am just googling the error and finding out what the problem is. > | However, it is hard to address issues and come up with long-term > solutions > | without internalizing the concepts. > | One example is creating a conda environment for each R package project > and > | installing llvm, clang, etc into each environment. > > As an R developer, I have a simple rule: Just say No to conda. Mixing and > matching between standard / core builds (using the recommended R toolchain) > and conda appears to mostly end in tears. > > | I talked to several software engineers; however, I could not find a > | convincing answer. I think I do not know what I do not know about this > | topic, which prevents me from asking good questions. I would be grateful > if > | you could let me know your thoughts about these questions. > > Again, a reproducible example would help. > > Rcpp is used by over 2300 packages on CRAN. Many use OpenMP. You can search > at GitHub within the mirroring 'cran' organisation to see what other > packages > do. Given that you can also see the outcome (the package 'status' pages at > CRAN) that is not a bad approach. > > Dirk > > | Where is a good place to start learning about this topic? > | Is a professional C++ developer necessarily good at troubleshooting > | problems with compilers and linkers? Or these are two different topics. > | > | Best regards, > | Naeem Khoshnevis > | _______________________________________________ > | Rcpp-devel mailing list > | Rcpp-devel@lists.r-forge.r-project.org > | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- > https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org >
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel