Displaying 20 results from an estimated 100 matches similar to: "Typo in src/scripts/config"
2016 Feb 09
1
Typo in C++11 Section of Writing R Extensions
Hi, I was reading through the R extensions website and noticed that the example code at the end of the section makes references to CXX11XSTD and CXX11XFLAGS, shouldn?t these be CXX1XSTD and CXX1XFLAGS respectfully? (on the second and fourth line)
CXX1X=`"${R_HOME}/bin/R" CMD config CXX11X`
CXX1XSTD=`"${R_HOME}/bin/R" CMD config CXX11XSTD`
CXX="$(CXX1X) $(CXX1XSTD)"
2016 Oct 16
3
compile c++ code in an R package without -g
Hello,
I'm writing an R package that is mainly written in C++. By default, R
CMD INSTALL creates C/C++ flags as follows:
-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -g
However, my package is fairly large. With debug info compiled into the
library, the generated .so file is over 200MB. Without debug info,
it's about 30MB. I hope
2016 Aug 08
0
Setting Gnu++11 when compiling R-devel on Windows
Recently, there have been changes to R-devel to make it more
compatible with GCC 6.x, which is great. Unfortunately, Windows still
uses a toolset based on GCC 4.9.3.
When compiling R release or R-patched, one can have GCC called with
-std=gnu++11 by having it in the CXXFLAGS in one's HOME/.R/Makevars as
well as by overwriting CXX1XSTD in
R_HOME/src/gnuwin32/fixed/etc/Makeconf.
When trying
2017 Mar 19
3
Experimental CXX_STD problem in R 3.4
C++ support across different platforms is now very heterogeneous. The standard is evolving rapidly but there are also platforms in current use that do not support the recent iterations of the standard. Our goal for R 3.4.0 is to give as much flexibility as possible. The default compiler is whatever you get "out of the box" without setting the "-std=" flag. This means different
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
2014 Jul 25
1
Multiple -g flags in R CMD SHLIB
Does anybody know why two "-g" flags appear in the call to gcc in R CMD
SHLIB
Example:
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic *-g* -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 *-g* -c c_file1.c -o
c_object1.o
Surely it need only be listed once?
Alan
[[alternative HTML version deleted]]
2015 Oct 13
2
gcc ubsan alignement test --minimal gcc version?
Dear All,
I'm trying to implement the section of the manual pertaining to the
gcc-ubsan test
carried by CRAN on my local computer (ubuntu 14.04):
http://www.stats.ox.ac.uk/pub/bdr/memtests/gcc-UBSAN/README.txt
I was wondering whether someone could tell what the minimal version
of the gcc tool chain needed to run the gcc-ASAN and gcc-UBSAN alignment
tests on ones local
2014 Jul 01
0
USE_CXX1X, Snow Leopard R binaries + Mavericks
Hi R-devel,
I'm noticing the following behaviour:
writeLines("#include <Rcpp.h>", file = "test.cpp")
Rcpp::sourceCpp("~/test.cpp") ## succeeds at trivial compile
Sys.setenv("USE_CXX1X" = "yes")
Rcpp::sourceCpp("~/test.cpp") ## fails; CXX nor CXX1X properly set (?)
IIUC, R is not propagating CXX nor CXX1X when
2007 Jun 07
1
Ubu edgy + latest CRAN R + Rmpi = no go
I'm just curious if anyone else has had problems with this
configuration. I added the CRAN repository to apt and installed 2.5.0
with apt-get. I then did an install.packages("Rmpi") on cluster nodes.
Rmpi loads and lamhosts() shows the nodes, but mpi.spawn.Rslaves()
fails (something to do with temp files?). Rmpi works fine with the
Edgy-native version of R (2.3.x) and installing
2016 May 25
3
Suggestion: mkString(NULL) should be NA
On Wed, May 25, 2016 at 7:22 AM, Michael Lawrence <lawrence.michael at gene.com
> wrote:
> On Wed, May 25, 2016 at 4:23 AM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu>
> wrote:
>
I'm not disagreeing with what's been said in this thread, but I can't help
but recall that I brought up this exact issue probably 15 years ago and was
told (by Brian, I believe)
2017 Mar 30
2
Transferring ownership of R-managed buffer
On Wed, Mar 29, 2017 at 4:56 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote:
> The concept of having a vector which is a "window" into another vector
> without duplication ( which I suspect is at least related to your use-case,
> though I could be wrong) is a special case of one of alt-representations I
> have implemented there.
>
Nice. That is exactly what I
2015 Jan 13
6
Request for help with UBSAN and total absense of CRAN response
CRAN has a package of mine in upload limbo because it failed UBSAN.
I am not entirely ignorant on the topic of sanitizers and SAN / ASAN / UBSAN;
we created not one but two Docker containers with ASAN and USBAN:
https://registry.hub.docker.com/u/rocker/r-devel-san/
https://registry.hub.docker.com/u/rocker/r-devel-ubsan-clang/
as well as predecessors to them in earlier Docker repos.
Yet I
2017 Mar 29
3
Transferring ownership of R-managed buffer
I have a use case where I would like to create an SEXP around an existing
buffer that is managed by R, thus avoiding a copy operation. If I have
something like:
void *p = (void*) RAW(PROTECT(Rf_allocVector(RAWSXP, n)));
... additional maniupulation ...
SEXP x = somefunc(SXPTYPE, n, p); // ????
Is there a "placement" constructor available? (I have arranged for the
corresponding
2007 Mar 18
1
Setting site-wide default CRAN repository?
I can't seem to find this anywhere. How do I set the default CRAN
repository _site wide_ on a linux box? What I want to do is eliminate
the pop-up list of repository locations when using
'install.packages()'. I know how to do this for a single account.
Modifying files in /etc/R does not seem to work. (cc me please - I
think I'm not subscribed).
THK
--
Timothy H. Keitt,
2015 Oct 07
2
authorship and citation
On 07/10/2015 1:39 PM, Tim Keitt wrote:
> On Wed, Oct 7, 2015 at 11:29 AM, Spencer Graves <spencer.graves at prodsyse.com
>> wrote:
>
>> Another example: The "Author" of the Ecdat package is Yves Croissant <
>> yves.croissant at let.ish-lyon.cnrs.fr>. I'm the Maintainer. At some
>> point, I may add my name to the list of Authors but I
2002 Apr 16
1
[Fwd: Re: Multithreading]
Oops. Seems I only sent this to myself.
T.
-------------- next part --------------
An embedded message was scrubbed...
From: "Timothy H. Keitt" <tklistaddr at keittlab.bio.sunysb.edu>
Subject: Re: [R] Multithreading
Date: 16 Apr 2002 12:34:52 -0400
Size: 2091
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20020416/dd6c9385/attachment.mht
2017 Mar 29
2
Transferring ownership of R-managed buffer
http://www.keittlab.org/
On Wed, Mar 29, 2017 at 1:04 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:
> Hi Tim,
>
> On 03/29/2017 08:24 AM, Tim Keitt wrote:
>
>> I have a use case where I would like to create an SEXP around an existing
>> buffer that is managed by R, thus avoiding a copy operation.
>>
>
> What to you mean exactly by "an existing
2014 May 22
1
Excluding objects from save.image
When dealing with object holding pointers that are only valid during a
single session, it would be convenient to exclude them from being saved
with the session image. (I am assuming that `quit` calls `save.image`
before quitting or is it internal?) Currently they are saved with the
pointer converted to NULL. Its a bit surprising for users not realizing the
object is no longer valid.
My thought is
2007 May 30
4
Connecting to PostgreSQL/PostGIS from R (rgdal?)
Hello,
I've been trying every now and then to find a cross operating system
solution that would let me access PostgreSQL (and PostGIS) from R, or to
access R from PostgreSQL. I know of pl/r, which accomplishes the
latter, but has yet to be successfully ported to Windows. Similarly,
I've tried to use Rdbi and DBI, but I haven't had luck with those on
Windows either for connecting to
2009 Jul 23
1
problem building R 2.9.1 from source on RHEL 4 (x86_64)
I am building from source on RHEL 4 and have run into a
problem while running "make check":
running code in 'lapack.R' ...make[3]: *** [lapack.Rout] Error 1
make[3]: Leaving directory `/opt/R/R-2.9.1/tests'
make[2]: *** [test-Specific] Error 2
make[2]: Leaving directory `/opt/R/R-2.9.1/tests'
make[1]: *** [test-all-basics] Error 1
make[1]: Leaving