*_ELT accessor functions are described in "vector accessor functions" in
Writing R extensions.
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Vector-accessor-functions
On Wed, Jun 16, 2021 at 4:22 PM Toby Hocking wrote:
> By the way, where is the documentation for INTEGER_ELT, REA
Hello,
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 9 (stretch)
Matrix products: default
BLAS/LAPACK:
/opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/lib/intel64_lin/libmkl_rt.so
locale:
[1] LC_CTYPE=en_CA.UTF-8
On Friday, 4 November 2016, Martin Maechler
wrote:
> > Dirk Eddelbuettel >
> > on Fri, 4 Nov 2016 10:36:52 -0500 writes:
>
> > On 4 November 2016 at 16:24, Martin Maechler wrote: | My
> > proposed name '--no-stop-on-error' was a quick shot; if |
> > somebody has a more con
+1. Very grateful; more consistency is always great :)
On Wednesday, 7 September 2016, robin hankin wrote:
> Martin
>
> I'd like to make a comment; I think that R's behaviour on 'edge' cases like
> this is an important thing and it's great that you are working on it.
>
> I make heavy use of zero
Depends on, and Enhances, A, and A
> Suggests B.
[...]
Why not putting common stuff of A and B into C and then let A and B depend on C?
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
the help of version control, you can easily spot the changes after you
> upgrade the packages.
[...]
A new major release number might be the right point to switch
from svn to git.
Branch-and-merge made easy :-)
Ciao,
Oliver
__
R-devel@r-projec
Am 15.01.2013 um 01:11 schrieb Brian Lee Yung Rowe :
>
> On Jan 14, 2013, at 6:32 PM, oliver wrote:
>
>> BTW: I looked up the string "wish list" in some of the mentioned docs
>> (mentioned in this thread)
>> but did not found it.
>>
On Mon, Jan 14, 2013 at 03:50:04PM -0500, Simon Urbanek wrote:
> On Jan 14, 2013, at 3:29 PM, oliver wrote:
>
> > Hello,
> >
> > I saw Binaries, stable release-souzrces and daily snapshots of R, but
> > not something like a repository, visible for the public (
something like a plan with future goals,
which are planned for the next releases?
Are there areas, where help is needed?
And in which way could support be done?
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo
install.packages(r, lib = "myLib", repos=NULL, type = "source")
+ stopifnot(require(p.,lib = "myLib", character.only=TRUE))
+ detach(pos = match(p., sub("^package:","", search(
+ }
+ ## TODO: not just print, but check the "list":
+ res <- installed.packages(lib.loc = "myLib", priority = "NA")
+ print(res)
+ #options(op)
+ unlink("myLib", recursive = TRUE)
+ unlink(file.path(pkgPath), recursive = TRUE)
+ }
building package pkgA ...
installing package pkgA using file pkgA_1.1.tar.gz ...
Error in untar2(tarfile, files, list, exdir) : unsupported entry type 'x'
Loading required package: pkgA
Error: require(p., lib = "myLib", character.only = TRUE) is not TRUE
In addition: Warning messages:
1: In install.packages(r, lib = "myLib", repos = NULL, type = "source") :
installation of package 'pkgA_1.1.tar.gz' had non-zero exit status
2: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return
= TRUE, :
there is no package called 'pkgA'
Execution halted
---
Unfortunatly the above says nothing to me, and I didn't find information
on the Internet.
I hope somebody can help. In the past the build-process worked (at least
for R-version 2.14.1) with Suse 11.2 and gcc version 4.5.3.
Thanks for your attention.
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ely.
[...]
LOL.
...maybe you can use valgrind to debug valgrind... :->
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ould be more verbose.
Do you want to make the document better,
or do you have questions on how to understand
what it talks about?
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ere are a lot of good documentatiuons online.
Even books for R are available. Look at the library
of your "research institute"...
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Mon, Jul 23, 2012 at 06:42:17PM +0100, Prof Brian Ripley wrote:
[...]
> BTW, 'large dataset' is meaningless: when I asked a class of
> Statistics PhD students the answers differed by 7 orders of
> magnitude.
[...]
lol
But isn't 7 a "small&
mechanism is
encode as part of the path to the file, e.g. "direct-mapped",
then just set the chace value to "direct-mapped".
Ciao,
Oliver
P.S.: In my understandiung this would be rather r-users instead of r-devel,
because I think r-devel seems to be more focussed on i
Hello,
OK, thanks for the information...
On Tue, Apr 24, 2012 at 12:02:33PM -0500, Dirk Eddelbuettel wrote:
>
> On 24 April 2012 at 12:39, Duncan Murdoch wrote:
> | On 24/04/2012 12:31 PM, oliver wrote:
> | > Hello,
> | >
> | > what if I want to write a package mi
functions they provide.
I mean I don't want to use the other packages via R-level, but directly
on the C-layer. Something like shared libs (dlopen and such stuff)
but via R-API.
Is there a general aproach to this, and how to do it?
Ciao,
O
On Thu, Apr 19, 2012 at 08:31:56PM +0200, oliver wrote:
> On Thu, Apr 19, 2012 at 06:12:30PM +, Ravi Varadhan wrote:
> > Hi,
> >
> > Currently, the "base" has colSums, colMeans. It seems that it would be
> > useful to extend this to also include
- max
- var
- sd
If both then are available for rows and columns,
this would be fine.
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
depends on what you want to do.
I can't decide that easily, without seeing your example running.
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ng on.
It did not looked very complicated. But maybe .C would be much easier.
Don't know.
>
> No need to switch to .Call
OK, at least not for the point of DUP-arg.
But it seems to me, that when later the names-result will
be correctly set to 0, 1 and 2, then such optimisations,
tions.
But if they do not substitute all these deprecated functions,
then either porting the stand-alone-code to R is made
much effort, or the deprecated functions might just stay inside.
Do you see what I mean?
>
> > If nothing of that stuff works, I would need to use the original
> > ca
On Sat, Mar 17, 2012 at 10:08:05PM -0500, Dirk Eddelbuettel wrote:
>
> On 18 March 2012 at 03:30, oliver wrote:
> | Hello,
> |
> | when looking at "Writing R Extensions"
> | with mem-allocation in mind, I wondered,
> | which functions to use to substitute
> |
If nothing of that stuff works, I would need to use the original
calloc() / free() functions, which are deprecated in the above
mentioned manual.
Ciao,
Oliver
P.S.: Also I wonder... R-alloc() does not need a free()-like call?
Is it freed automaticlaly?
And at which time?
recommended".
At the moment R rather deprecates in-place modification by default
(the save way, and I agree with this default).
But it's not true, that R in general copies arguments.
But this seems to be true for the .C interface.
Maybe a lot of performance-/memory-problems can be so
think that you are just asking for more internal optimizations.
Fine.
But I think internal intermediate code (that can be optimized)
would be better than that one "enhancement" of reusing anonymous
data for the output.
Ciao,
Oliver
On Thu, Mar 08, 2012 at 10:27:22PM +, Willi
olean flag
or programming a sparate module in C would make sense.
There could also be a global in-place-flag that might be used (via options
maybe) but if such a thing would be implemented, the default value should be
FALSE.
Ciao,
Oliver
On Thu, Mar 08, 2012 at 04:21:42PM +, William Dunlap
return input_val;
}
else
{
result_val = alloc_vec( LENGTH(input_val), ... );
result_val[idx] = cos( input_val[idx] );
return result_val;
}
Is this matching, what you were looking for?
Ciao,
Oliver
On Thu, Mar 08, 2012 at 02:56:24PM +0100, oliver wrote:
> Hi,
>
nd that in the R-code?
The other problem, someone mentioned, was *changing* the contents
of a matrix... and that this is NO>T done in-place, when using
a function for it.
But the namespace-name / variable-name as "references" to the matrix
might solve that problem.
Ciao,
Oliver
these libraries are not likely to be rewritten.
>
> Thus there will always be a need for a foreign
> function interface, and the problem is to provide
> a flexible and type-safe language that does not
> force developers to use another unfamiliar,
> less flexible, and error-prone language to
> optimize the hot spots.
If I here "type safe" I rather would think about OCaml
or maybe Ada, but not LISP.
Also, LISP has so many "("'s and ")"'s,
that it's making people going crazy ;-)
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Wed, Mar 07, 2012 at 10:31:14AM -0500, Dominick Samperi wrote:
> On Tue, Mar 6, 2012 at 3:56 AM, oliver wrote:
> > On Mon, Mar 05, 2012 at 04:54:05PM -0800, Nicholas Crookston wrote:
> >> There are many experts on this topic. I'll keep this short.
> >>
> &
function writer and the function user.
[...]
Can you elaborate more on this,
especially on the ...-...-...-if-not-copying-would-be-discoverable-by-the-uer
stuff?
What do you mean with discoverability of not-copying?
Ciao,
Oliver
__
R-devel@
On Mon, Mar 05, 2012 at 07:33:10PM -0500, Duncan Murdoch wrote:
> On 12-03-05 6:58 PM, Hervé Pagès wrote:
> >Hi Oliver,
> >
> >On 03/05/2012 09:08 AM, oliver wrote:
> >>On Mon, Mar 05, 2012 at 03:53:28PM +, William Dunlap wrote:
> >>>I haven't us
have fun if things work.
And if the tools do, what I want to achieve...
...and the fun is better, if they do it elegantly.
Do you ask for references in R?
And what kind of references do you have in mind,
and why does it hurt you not to have them?
Can you give examples, so that it's easier to
On Mon, Mar 05, 2012 at 03:58:59PM -0800, Hervé Pagès wrote:
> Hi Oliver,
>
> On 03/05/2012 09:08 AM, oliver wrote:
> >On Mon, Mar 05, 2012 at 03:53:28PM +, William Dunlap wrote:
> >>I haven't used Julia yet, but from my quick reading
> >>of the docs it
detail so far.
Maybe the orig-poster already did this in more depth?
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ombining via
providing interfaces between them, calling the one via the
other, merging code or using libs from the one or the other
from each side).
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
redump with gdb, if you allow one to be written.
On Ubuntu the default is to set core size to 0 Bytes,
so a crash will be silent.
(I think this is also true on some (most? all?) other Linux distributions).
You need to change this behaviour and then you might get some p
Hello,
an article on that topic:
http://ekonometrics.blogspot.com/2011/04/speeding-tickets-for-r-and-stata.html
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ter to incorporate some more features.
If someone would want to take over maintenance, I had some feature wishes...
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Sat, Sep 10, 2011 at 10:24:49AM -0700, Spencer Graves wrote:
> On 9/10/2011 10:19 AM, oliver wrote:
> >On Sat, Sep 10, 2011 at 07:40:24AM -0700, Spencer Graves wrote:
> >>
> >>On 9/10/2011 6:06 AM, Uwe Ligges wrote:
> >>>
> >>>On 10.09.2011 13:
platform where
packages
should be downloadet from (at least it seems to be the default for install),
then from time to time packages should be copied to R-CRAN, so that there the
progress one day will pop up - maybe with a delay, and only hosting well tested
packages.
Something like "testing&
;t make GPLed code again closed.
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
If you compile/link the code together,
and distribute the software, then the code must be GPL.
Seperate install makes sense. IMHO.
So then the user would put together the parts.
Not sure, but maybe the different parts also must be shipped seperated.
Ciao,
Oliver
On Tue, Aug 30, 2011 at 12
eeds are not set accordingly and segmentation faults are not
reproducible.
More precisely, I need to replace the set_seed line in the following snippet
with something else.
#include
int main(int argc,char* argv[])
{
const unsigned int SEED1= 12345, SEED2= 67890;
set_seed(SEED
nix/Linux you can use the functions
dlopen()
dlerror()
dlsym()
dlclose()
The manpages will explain you the details.
Hope that helps.
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Thu, Jun 09, 2011 at 12:56:09PM -0400, Simon Urbanek wrote:
>
> On Jun 9, 2011, at 11:15 AM, oliver wrote:
>
> > On Thu, Jun 09, 2011 at 10:54:28AM -0400, Duncan Murdoch wrote:
> >> On 09/06/2011 9:28 AM, oliver wrote:
> >>> On Thu, Jun 09, 2011 at 07
On Thu, Jun 09, 2011 at 10:54:28AM -0400, Duncan Murdoch wrote:
> On 09/06/2011 9:28 AM, oliver wrote:
> >On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote:
> >> On 11-06-09 7:27 AM, oliver wrote:
> >> >On Wed, Jun 08, 2011 at 08:35:3
In section 6.1.2 of Writing R Extensions, it is mentioned that
if the function returns, success can be assumed.
In section 6.1.1 this is not mentioned, but I assume the same holds true there
too,
even it is not mentioned there.
Ciao,
Oliver
__
R
On Thu, Jun 09, 2011 at 04:42:33PM +0200, oliver wrote:
> On Wed, Jun 08, 2011 at 08:40:21PM -0400, Simon Urbanek wrote:
> >
> > On Jun 8, 2011, at 8:06 PM, oliver wrote:
> >
> > >
> > > Hello,
> > >
> > >
> > > what
On Wed, Jun 08, 2011 at 08:40:21PM -0400, Simon Urbanek wrote:
>
> On Jun 8, 2011, at 8:06 PM, oliver wrote:
>
> >
> > Hello,
> >
> >
> > what happens, when a function (R-extension in C), that allocated memory
> > (strdup(), malloc()/calloc(
On Thu, Jun 09, 2011 at 07:43:20AM -0400, Duncan Murdoch wrote:
> On 11-06-09 7:27 AM, oliver wrote:
> >On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote:
> >>
> >>On Jun 8, 2011, at 8:32 PM, oliver wrote:
> >>
> >>>On Thu
On Wed, Jun 08, 2011 at 08:40:21PM -0400, Simon Urbanek wrote:
>
> On Jun 8, 2011, at 8:06 PM, oliver wrote:
>
> >
> > Hello,
> >
> >
> > what happens, when a function (R-extension in C), that allocated memory
> > (strdup(), malloc()/calloc(
On Wed, Jun 08, 2011 at 08:35:34PM -0400, Simon Urbanek wrote:
>
> On Jun 8, 2011, at 8:32 PM, oliver wrote:
>
> > On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote:
> > [...]
> >> OK, I looked at this now.
> >>
> >> LENGTH() checks the le
On Thu, Jun 09, 2011 at 02:17:31AM +0200, oliver wrote:
[...]
> OK, I looked at this now.
>
> LENGTH() checks the length of the vector.
>
> Good to know this.
>
> So the problem of a vector of length 0 can be with any arguments of type SEXP,
> hence I will need to chec
On Wed, Jun 08, 2011 at 02:23:29PM -0400, Simon Urbanek wrote:
>
> On Jun 8, 2011, at 12:08 PM, oliver wrote:
>
> > On Wed, Jun 08, 2011 at 12:22:10PM +0100, Prof Brian Ripley wrote:
> >> On Tue, 7 Jun 2011, Duncan Murdoch wrote:
> >>
> >>> On 0
e, and one does many
trials and Ctr-C's, even an interactive session might eat a lot of mem.
So I would be interested in a solution to this (potential) problem.
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Wed, Jun 08, 2011 at 12:22:10PM +0100, Prof Brian Ripley wrote:
> On Tue, 7 Jun 2011, Duncan Murdoch wrote:
>
> >On 07/06/2011 9:08 AM, oliver wrote:
> >>Hello,
> >>
> >>following an advice here from the list I looked into sources of other
> >
On Tue, Jun 07, 2011 at 10:30:12AM -0400, Gabor Grothendieck wrote:
> On Tue, Jun 7, 2011 at 9:03 AM, oliver wrote:
> > Hello,
> >
> > I have some ideas for packages that I want to provide on R-CRAN.
> >
> > One package alreads is working, but I have some warni
ion.
Am I doing something wrong here, or is it ok, but I have somehow
to say the extracting macros/functions, that it is really intended
to throw away information and that a warning is not necessary?
Ciao,
Oliver
__
R-devel@r-project.org mailing
like zoo() using special types)
Can you give me some general advice on how to organize this best,
so that it also fits into the R / R-CRAN philosophy?!
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Hello Jeff,
thanks for the hints and details.
I just downloaded xts-sources and hope it shows me the
dark secrets of R ;)
Ciao,
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
On Sat, Jun 04, 2011 at 07:51:08AM -0400, Duncan Murdoch wrote:
> On 11-06-03 4:19 PM, oliver wrote:
> >On Fri, Jun 03, 2011 at 11:14:39AM -0500, Douglas Bates wrote:
> >>On Fri, Jun 3, 2011 at 5:17 AM, oliver wrote:
> >>>Hello,
> >>>
> >>>I&
On Fri, Jun 03, 2011 at 11:14:39AM -0500, Douglas Bates wrote:
> On Fri, Jun 3, 2011 at 5:17 AM, oliver wrote:
> > Hello,
> >
> > I'm implementing a package (C-extension),
> > where one function gets data and a function
> > that needs to be applied to
L on the result, before using it in a loop.
Can this be used for efficiency reasons in general?
Ciao,
Oliver
P.S.: What do these macros (like REAL()) do? Do they convert data
or rather cast datatypes?
__
R-devel@r-project.org mailing list
https
he all programs menu gives the weird behavior, and
running it through the recent programs list gives me the expected
behavior.
Oliver
On Thu, Feb 24, 2011 at 3:54 PM, Gabor Grothendieck
wrote:
> On Thu, Feb 24, 2011 at 2:46 PM, Oliver Soong wrote:
>> Sorry, I didn't know about r-wi
system, and since
the equivalent command in shell shows the same behavior due to this
weirdness I'm finding with system, I decided to focus on what appeared
to be the underlying problem (although perhaps not the actual problem
if it is just something with me).
Oliver
On Wed, Feb 23, 2011 at
rtcut, from the start menu all programs menu, or
through explorer.
I'm stumped. Any ideas I can try?
Oliver
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
future? May I submit a patch? Otherwise I would need to re-implement much
of the functionality of R environments in my own code.
Many thanks and best regards
Oliver
--
Dipl. Inform. Oliver Flasch,
Institute of Computer Science,
Faculty of Computer Science and Engineering Science,
Cologne University
l") in a session or in my .Rprofile.
I'm not sure if I'm the only one seeing this, but for what it's worth,
I also set SDI and Internet = Standard. I haven't experimented with
different installation settings to see which ones work.
Oliver
___
Full_Name: Oliver Bandel
Version: R version 2.7.1 (2008-06-23)
OS: Linux (Debian Lenny)
Submission from: (NULL) (88.73.82.147)
Hello,
I have written a small R-script.
When I inserted one line of code, the behaviour was completely different!
Instead of just printing one line more to the output
ime the data used by the plotting
functions has not been set, and an error occurs.
Thanks for the workaround suggestion. I guess I can always define a
new plotting region to force par and the plotting data to
re-synchronize. It might be nice if those two didn't go out of sync,
as I
tting, figure, display, and
margin regions within the device? Is there a bug in pairs and/or par?
I'm using R 2.5.1, and this behavior occurs on a fresh R console.
Thanks!
Oliver
--
Oliver Soong
Donald Bren School of Environmental Science & Management
University of California, Santa Bar
Full_Name: Oliver Balmer
Version: 2.3.1
OS: Mac OS 10.4.6
Submission from: (NULL) (157.161.74.75)
when working in the editor R crashes regularly. no other program ever crashes.
one quite reliable way to crash it is by marking some code and then pressing the
"find" command. I hav
Hi,
I am working with a friend on a master's project. Our laboratory does a
lot of statistical analysis using the R stats package and we also have a
lot of under-utilised nvidia cards sitting in the back of our networked
linux machines. Our idea is to coerce the linux nvidia driver to run
so
75 matches
Mail list logo