Displaying 20 results from an estimated 6000 matches similar to: "Use of R and Rscript in configure/Makevars in packages"
2011 May 20
2
Calling Rscript from Makevars
Hi,
I am trying to package some code to use with R and wanted to call
Rscript from within the Makevars file (I am trying to automate the
setting of the location of a third party library depending on what is
available / the system the package is being installed on).
If I just have a simple Makevars containing
PKG_LIBS= -lnag_nag -L/fserver/nagprod/FL22/fll6a22df/lib
the package is built
2013 Nov 03
1
How to make an R package that uses Boost.Thread, qualified to be published on CRAN or shared by the most
Hi,
Recently, I made an R package that used the C++ library Boost.Thread (http://www.boost.org/doc/libs/1_54_0/doc/html/thread.html) for multithreading. Previously, I have posted a question at stackoverflow (http://stackoverflow.com/questions/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http), and I also asked at rcpp-devel
2018 Feb 01
1
Error message: 'Rscript' should not be used without a path
Dear R-devel members,
recently, I ran into the following error message (R-devel 2018-01-31):
'Rscript' should not be used without a path -- see par. 1.6 of the manual
I would like to know more about it, why is it required to run Rscript with
a path, and where is that par. 1.6 of the manual.
I get this error message during Travis r-devel build of my package for
generating makefiles. I
2013 May 24
0
Rcpp with OpenMP - Need example Makevars
Dear R experts,
recently I started developing a Rcpp package "OpenMPTest".
Within that package I want to use OpenMP, as in the following code example:
// header file
#include <omp.h>
using namespace Rcpp ;
RcppExport SEXP testOpenMP( SEXP nThreads ) ;
// cpp file
SEXP testOpenMP( SEXP nThreads ) {
BEGIN_RCPP
NumericVector numberThreads = NumericVector( nThreads );
2016 Feb 10
2
Change Rscript and `/usr/lib/R/bin/R` relation
Dear all,
I am trying to use multiple version of R unpacked from CRAN deb files.
It does work successfully, except for some packages installation, whether
Rscript has been used. I have configured alternatives and switch R
environments without any problem and can install most of the packages.
'======================================================
$ update-alternatives --display R
R - auto
2013 Sep 21
2
regenerate Rscript after moving R installation
L.S.
In this bug report
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14493#c1
it is mentioned that after moving an R installation
one should regenerate the Rscript executable.
Is there an easy way to do so (after an R installation has been
moved)?
I have not found any information in the R installation and
administration manual.
Many thanks in advance for any pointer.
Best wishes,
2016 Oct 11
0
PKG_LIBS in make child processes
[cross-posted from bioc-devel list]
Hi all,
I have a subtle question related to how R CMD SHLIB handles variables in
make child processes. In more detail: I am the maintainer of the 'msa'
package which has been in Bioconductor since April 2015. This package
integrates three open-source libraries for multiple sequence alignment.
This is organized in the following way: in src/, there
2013 Aug 23
1
Makevars and Makeconf sequencing
http://cran.r-project.org/doc/manuals/R-exts.html#Configure-and-cleanup
near the start of 1.2.1 Using Makevars says
> There are some macros which are set whilst configuring the building of
> R itself and are stored in R_HOME/etcR_ARCH/Makeconf. That makefile is
> included as a Makefile after Makevars[.win], and the macros it defines
> can be used in macro assignments and make command
2010 Feb 11
2
LinkingTo and C++
Hello,
I've been trying to make LinkingTo work when the package linked to has
c++ code.
I've put dumb packages to illustrate this emails here ;
http://addictedtor.free.fr/misc/linkingto
Package A defines this C++ class:
class A {
public:
A() ;
~A() ;
SEXP hello() ;
} ;
Package B has this function :
SEXP say_hello(){
A a ;
return a.hello() ;
}
headers of package A are copied
2008 Apr 28
2
Problems with Rscript executable.
Good Morning,
I have recently built R version 2.7.0 on a CentOS release 4.6, 64-bit
system using the following command:
./configure --prefix=/usr/local/r-2.7.0
Everything built fine and works properly except for Rscript which is
looking for files in the original build directory instead of the
specified install directory. Did I forget to add a flag or is this a bug?
TIA,
Gregg.
2009 Oct 15
0
let R and Rscript infer paths from their own location (PR#14007)
Full_Name: Philip R. Kensche
Version: 2.9.1
OS: Linux
Submission from: (NULL) (131.174.146.252)
Use case:
Run R scripts using bin/Rscript or "bin/R --no-restore --file=<script-file>
--args <args>" in a heterogeneous computing grid in which it is not possible to
predict the actual installation directory of the R binaries.
Problem:
The script bin/R and the wrapper
2020 Oct 08
1
Installing package fails at "testing if installed package can be loaded from temporary location"
Dirk, thank you a thousand times.
Indeed, src/Makevars was wrong. I modified Makevars so that now looks like
the below and the package now compiled and linked properly.
CXX_STD = CXX11
PKG_LIBS += $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
$(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include
2016 Sep 27
4
src/Makevars ignored ?
Le 27/09/16 ? 13:31, Dirk Eddelbuettel a ?crit :
>
> On 27 September 2016 at 09:37, Eric Deveaud wrote:
> | Hello,
> |
> | I'm tring to install a Rpackage that holds some C//C++ code
> |
> | as far as I understood the R library generic compilation mechanism,
> | compilation of C//C++ sources is controled
> |
> | 1) at system level by the ocntentos
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
When I install an R package with cpp codes such as rrcov via CRAN (under
R 3.1.1, using no Makevars file and under Ubuntu 14.04 using GCC 4.8),
the cpp code is compiled with the -o3 flag (in fact, looking at the
Makeconf file this seem to again be the default since R 3.1.1) But when
I install my own package via CRAN it is compiled with the -o2 flag.
My questions are what is causing my
2016 Feb 10
0
Change Rscript and `/usr/lib/R/bin/R` relation
Thanks for bringing the question over from StackOverflow [1]. I am not very
impressed that you STILL hide behind a pseudonym and I am starting to
question my sanity as to why I take time out to help someone like
that. Anyway, read on ...
[1] http://stackoverflow.com/questions/35313704/rscript-launch-custom-r/
On 10 February 2016 at 15:50, Cron Acronis wrote:
| Dear all,
|
| I am trying to use
2009 Oct 29
2
Makevars, cc files in multiple directories
Hello,
In the src folder of my R package I have
a.cc
b.cc
f/g/x.cc
my Makevars.in has
all: $(SHLIB)
upon installing only, a.o and b.o is build and the final dll is
comprised of a.o and b.o
How can I instruct $(SHLIB) to pick up its source files from all
subdirectories (or maybe a subset, though here it will be all)
in src ?
Much thanks
Saptarshi
2005 Oct 05
1
Problems with autoconf example from r-ext.
Dear R-developers,
I am trying to reproduce the autoconf.ac example from R-ext and fail.
My autoconf file looks like this
[autoconf.ac]
# original by Friedrich Leisch, much changed by BDR
AC_INIT([SBMLodeSolveR])
dnl Select an optional include path, from a configure option
dnl or from an environment variable.
AC_ARG_WITH([sbmlode-include],
2008 Jun 04
1
"ignoring environment value of R_HOME" error when installing packages
I am troubled by what appears to be a glitch in the current
distribution, or in
its installation on our system. I've traced it, and found a work-
around. Is
this normal? Is there a cleaner solution?
The problem:
During a package installation, the warning message "WARNING: ignoring
environment value of R_HOME" from line 31 of <R_HOME>/bin/R is
accidentally
spliced into the
2016 Sep 27
0
src/Makevars ignored ?
As a package author, it is in my opinion irresponsible to override these
system settings (which is why it is also impossible). You have no idea
what system it is being deployed on, I mean, you don't even know if the
compiler is gcc. If a user wants (say) heavy optimization they will compile
R with optimization. (For this reason I also don't think users should
modify their ~/.R/Makevars,
2016 Feb 12
1
Change Rscript and `/usr/lib/R/bin/R` relation
On Wed, 10 Feb 2016 10:18:51 -0600, Dirk Eddelbuettel wrote:
> Thanks for bringing the question over from StackOverflow [1]. I am not
> very impressed that you STILL hide behind a pseudonym and I am starting
> to question my sanity as to why I take time out to help someone like
> that. Anyway, read on ...
>
> [1]