Displaying 20 results from an estimated 100 matches similar to: "cleanup and Makevars"
2014 Sep 03
2
timings for examples in R CMD check
I'm having a very hard time making R CMD check produce a clean check on
examples because of the timings inserted into examples by R CMD check.
I am getting a difference on every example output caused by timing
information being inserted by 'R CMD check'.
The current 'Writing R Extensions' manual[1] states on p. 14:
If directory tests has a subdirectory Examples
2009 Nov 10
1
Makevars or Makevars.in
I am just trying to adjust one of my packages so the C code builds in
Windows. This is code that has been around for a long time, and I'm am
only a casual reader of C, so it has had the "if it is not broken don't
touch it" approach for many years. The section 1.2.1 "Using Makevars"
of "Writing R extensions" starts:
"Sometimes writing your own
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
2000 Jul 17
1
Makevars, PKG_CFLAGS, ...
Hi,
I'm searching for a way to override the default CFLAGS/FFLAGS (-g -02 in
my case) per package (e.g with "-g" for packages under development).
PKG_CFLAGS/PKG_FFLAGS is prepended to the remaining flags, so it can't
delete a globally set "-O2" flag.
Of course I can edit the global Makeconf file, but I was wondering if
there is a possibility to override variables from
2007 Jan 26
1
Makevars PKG_LIBS ignored by SHLIB (PR#9473)
Full_Name: Rick Sayre
Version: 2.4.0
OS: Windows
Submission from: (NULL) (138.72.27.164)
PKG_LIBS works fine on *nix
on windows, it seems to be ignored by the "SHLIB" script
so, R CMD SHLIB blah
properly uses PKG_CPPFLAGS and PKG_CFLAGS from Makevars, but PKG_LIBS is
ignored
2008 Jun 06
1
Makevars or congiure for multi platforms
Dear all,
As previously submitted, I wrote an extending pdf device to embed
pop up text and web links.
(Patches are available at http://pdf2.r-forge.r-project.org/patches)
Now, I'm making a library version of the pdf device.
However, with my skill, I'm not sure about writing Makevars or configure file
for multi platforms. A following line in Makevars works on my mac,
-----
2015 May 13
2
Alternative for wildcard gnu extension in Makevars
I have some cpp-files from another library (boost) in a subdirectory
in my src directory (src/boost_src). I include these using the
following two lines in my Makevars:
SOURCES = $(wildcard *.cpp boost_src/*.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
However, R CMD check complains about my use of 'wildcard'. How do I
handle this without any gnu extensions?
Thanks.
Jan
2015 May 13
0
Alternative for wildcard gnu extension in Makevars
While at it: 'Makevars' is an R invention (i.e. documentation of it
is only available through the R docs), correct? /Henrik
On Wed, May 13, 2015 at 10:10 AM, Kevin Ushey <kevinushey at gmail.com> wrote:
> One other solution that's only a little crazy: you could have a R
> function within your package that generates the appropriate (portable)
> Makevars, and within the
2016 Sep 27
0
src/Makevars ignored ?
On 27 September 2016 at 15:23, Eric Deveaud wrote:
| so why ~/R/Makevars allows to change CC and not src/Makevars ?
|
| this is pretty confusing.
It seems weird at first, but makes some sense when you think about it like
this:
-- src/Makevars is inside a package and cannot / should not alter "system"
parameters like compiler brand or version as there may only be one
2018 Oct 02
1
How do I set a compile flag _WIN32_WINNT=0x600 in Makevars.Win
Sorry for bothering you
I am trying to build the R grpc package on windows:
https://github.com/nfultz/grpc
against an MSYS2 build of grpc.
when running devtools::install() I am getting the following error:
C:/msys64/mingw64/include/grpc/impl/codegen/port_platform.h:47:2:
error: #error "Please compile grpc with _WIN32_WINNT of at least 0x600
(aka Windows Vista)"
#error \
^
Which,
2020 Sep 29
0
Specifying C Standard in Package's Makevars File
On 28/09/2020 12:44, Andreas Kersting wrote:
> Hi,
>
> what is the correct way to specify a C standard in a package's Makevars file?
>
> Building a package with e.g. PKG_CFLAGS = -std=gnu11 does work but R CMD check issues a warning:
for some unstated value of 'work' ...
> * checking compilation flags in Makevars ... WARNING
> Non-portable flags in variable
2009 Jan 11
1
Makevars
Hi
I have sent a previous email "Error in dyn.load()" for which, shame on
me, I later found a partial answer.
I have been trying to look into what I exactly need to include into
Makevars and where
it needs to be located and have not found a satisfying answer yet.
Maybe the following questions
are helpful for other people as well.
Again, I am trying to include a C function tools.c into
2016 Sep 27
0
src/Makevars ignored ?
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 RHOME/etc/Makeconf
| 2) at user level by the content of ~/.R/Makevars
| 3) at package level by the content
2018 Mar 02
2
Makevars CXX_STD variable ignored when no *.cpp files in src/
Hello!
I might have found a bug in the way that R handles Makevars file when
building a package.
Value of variable CXX_STD is ignored - i.e. R does not use the correct
compiler/flags - if there are no *.cpp files directly in the src/
directory (e.g. all *.cpp are in subdirectories, and OBJECTS variable
is set accordingly). Adding a bogus *.cpp file fixes this issue.
However, this is not very
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
2015 May 13
3
Alternative for wildcard gnu extension in Makevars
Dirk Eddelbuettel <edd at debian.org> schreef:
> On 13 May 2015 at 17:27, Jan van der Laan wrote:
> |
> | I have some cpp-files from another library (boost) in a subdirectory
> | in my src directory (src/boost_src). I include these using the
> | following two lines in my Makevars:
> |
> | SOURCES = $(wildcard *.cpp boost_src/*.cpp)
> | OBJECTS = $(SOURCES:.cpp=.o)
2016 Sep 27
0
src/Makevars ignored ?
So now we have some important context for your original question.
I understand why you want "symmetry" but because of the reasons Dirk
outlines, I personally think it is a bad idea, ie. I disagree with your
statement "anyway I still convinced that if R provides a mechanisn
hierachical way of variable overwrite pkg / user/ system it _SHOULD_ be
consistent at all levels".
The
2005 May 20
1
using src/Makevars file
Hi all,
Thanks to all who offered advice on using F95 in R.
Now I'm trying to compile a test package using gfortran, Linux 2.4.21 and
R 2.1.0.
I was able to successfully compile and use a test F95 routine by setting my
environment variables as follows in bash:
export PATH=~/bin/:$PATH
export F77=gfortran
export LD_LIBRARY_PATH=~/bin/irun/lib
export GFORTRAN_STDIN_UNIT=-1
Now I'm
2015 May 15
1
Alternative for wildcard gnu extension in Makevars
On May 13, 2015, at 2:28 PM, Henrik Bengtsson <henrik.bengtsson at ucsf.edu> wrote:
> While at it: 'Makevars' is an R invention (i.e. documentation of it
> is only available through the R docs), correct? /Henrik
>
Well, it's just a Makefile fragment that gets included along with the rest of the Makefiles, so for all practical purposes it's just a Makefile which
2020 Sep 28
3
Specifying C Standard in Package's Makevars File
Hi,
what is the correct way to specify a C standard in a package's Makevars file?
Building a package with e.g. PKG_CFLAGS = -std=gnu11 does work but R CMD check issues a warning:
* checking compilation flags in Makevars ... WARNING
Non-portable flags in variable 'PKG_CFLAGS':
-std=gnu11
(Same for -std=c11.)
Thanks! Regards,
Andreas Kersting