Displaying 20 results from an estimated 10000 matches similar to: "Package functioning with R but not R-devel"
2015 Feb 18
0
Package functioning with R but not R-devel
Sarah,
We don't really have enough information to begin helping you with the
problem. We don't know what the c++ code is doing, which package you are
talking about, etc. See the posting guidelines.
That said, your code is "probably" doing something it shouldn't if things
have suddenly stopped working.
Try running R devel under gdb if you want to try to figure it out, e.g.
2015 Feb 02
3
A good way to debug a c++ library embedded to R code
Dear all,
I am using R CMD SHLIB to compile a c++ code into a library (.so) and
dyn.load to load this library into a R code. I am facing some problems in
the c++ code that I can not figure out how to solve. Do you recomend any
good way to debug this R + C++ program? If I was programming only in C++ I
would use GDB.
I would much appreciate any help or suggestion!
Best regards,
Charles
--
Um
2015 May 26
4
MetaCran website v1.0.0-alpha
On Tue, May 26, 2015 at 12:18 PM, Gabriel Becker <gmbecker at ucdavis.edu> wrote:
> On Tue, May 26, 2015 at 9:25 AM, Yihui Xie <xie at yihui.name> wrote:
>
>> I cannot speak for other package authors, but for all my own packages,
>> I have provided the BugReports field in DESCRIPTION that points to the
>> Github issues page. You can probably use this field to
2015 May 26
4
MetaCran website v1.0.0-alpha
On Tue, May 26, 2015 at 1:46 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote:
> That's true, but issues, checkouts, comments, credit, etc should all be
> going to the original repo.
You mean the links? They are, aren't they?
[...]
> >From the email Gabor just sent out, it sounds like he and I agree about
> this stuff anyway. I was really responding to the
2015 Mar 02
2
R-devel does not update the C++ returned variables
Thanks! I went through the online posts which supports the power of .Call
over .C. But my probably naive question is why does this work for my code
with R but not R-devel?
And another question is related to using .Call. Based on the manual page, I
do not need to change the function parameters when using .Call. So I can
run like this:
.Call("sppedUp", D, S, pD, pS, nrow(D), as.integer(N),
2015 Jun 15
1
Add on argument in seq()
Millot,
On Mon, Jun 15, 2015 at 9:19 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
> Regardless of the value of the other arguments, the first element in
> the output of seq() is _always_ `from`.
>
Indeed, as Hadley says, the output of seq must always start with* from*. It
is a sequence starting at *from* and ending wherever the other arguments
cause it to end. A sequence
2015 Oct 06
2
authorship and citation
Adrian,
Responses inline
On Tue, Oct 6, 2015 at 1:58 PM, Adrian Du?a <dusa.adrian at unibuc.ro> wrote:
> Hi Gabriel,
>
> On Tue, Oct 6, 2015 at 10:59 PM, Gabriel Becker <gmbecker at ucdavis.edu>
> wrote:
>
>> [...]
>>
>> At the very least, this is seems to be a flagrant violation of the
>> *spirit* of the CRAN policy, which AFAIK is intended to
2015 Apr 29
2
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 12:53 PM, Winston Chang <winstonchang1 at gmail.com>
wrote:
> On Tue, Apr 28, 2015 at 3:04 PM, G?bor Cs?rdi <csardi.gabor at gmail.com>
> wrote:
> >
> >
> > E.g. if package 'ggplot2' uses 'stats::density()', and package 'igraph'
> > also defines 'density()', and 'igraph' is on the search
2015 Mar 02
2
R-devel does not update the C++ returned variables
Hi,
Within my R code, I am using a C++ function as below:
overlaps <- matrix(0, nrow=B, ncol=length(N))
overlaps.P <- matrix(0, nrow=B, ncol=length(N))
.C("speedUp", D, S, pD, pS, nrow(D), as.integer(N), length(N),
ssq[i], i, as.integer(B), overlaps, overlaps.P, DUP=FALSE)
the function "speedUp", is supposed to update matrices overlaps
2015 Oct 06
4
authorship and citation
Adrian,
I am not on the CRAN or R-core teams, so the following is my own view,
but...
> library(QCA)
>
> Users are encouraged to cite this package as:
>
> Dusa, Adrian (2015). QCA: Qualitative Comparative Analysis. R Package
> Version 1.2-0,
> URL: http://cran.r-project.org/package=QCA
>
> This is just an encouragement, not a requirement, and the official citation
2015 Feb 02
1
A good way to debug a c++ library embedded to R code
----- Original Message -----
> From: "Gabriel Becker" <gmbecker at ucdavis.edu>
> To: "Charles Novaes de Santana" <charles.santana at gmail.com>
> Cc: "r-devel" <r-devel at r-project.org>
> Sent: Monday, February 2, 2015 12:02:27 PM
> Subject: Re: [Rd] A good way to debug a c++ library embedded to R code
>
> Charles,
>
>
2015 Apr 29
4
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 1:45 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote:
> Gabor,
>
> To play devil's advocate a bit, why not just have the package formally
> import the functions it wants to use (or the whole package if that is
> easier)?
>
This is exactly my goal. And to facilitate this, R CMD check could remind
you if you forgot to do the formal import.
2018 Jan 30
2
as.list method for by Objects
Dario,
What version of R are you using. In my mildly old 3.4.0 installation and in
the version of Revel I have lying around (also mildly old...) I don't see
the behavior I think you are describing
> b = by(1:2, 1:2, identity)
> class(as.list(b))
[1] "list"
> sessionInfo()
R Under development (unstable) (2017-12-19 r73926)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
2015 May 26
2
MetaCran website v1.0.0-alpha
I cannot speak for other package authors, but for all my own packages,
I have provided the BugReports field in DESCRIPTION that points to the
Github issues page. You can probably use this field to check if a
package is on Github or not. If it is, you may just fork the original
repo instead of creating a new one from the CRAN package. I'm not sure
how technically difficult it would be for you.
2015 Jun 15
2
Add on argument in seq()
Thanks for your answer.
The rational behind my proposal is why taking "from" when length.out=1, more than "to" or "NA", or " integer(0) " ?
This question seems basic. But is is not in certain situations, like when length.out = unpredictable positive integer.
And I haven't found in ?seq() the particular behavior of this function when length.out = 1.
2018 Feb 20
3
Duplicate column names created by base::merge() when by.x has the same name as a column in y
Hi Frederick,
It looks like I didn't overwrite the patch.diff file after the last edits.
Here's the correct patch (attached and copied below):
Index: src/library/base/R/merge.R
===================================================================
--- src/library/base/R/merge.R (revision 74280)
+++ src/library/base/R/merge.R (working copy)
@@ -157,6 +157,14 @@
}
2018 Feb 18
2
Duplicate column names created by base::merge() when by.x has the same name as a column in y
Thanks Gabriel,
I think your suggested approach is 100% backwards compatible
Currently in the case of duplicate column names only the first can be
indexed by its name. This will always be the column appearing in by.x,
meaning the column in y with the same name cannot be accessed. Appending
".y" (suffixes[2L]) to this column means it can now be accessed, while
keeping the current
2018 Feb 22
2
Duplicate column names created by base::merge() when by.x has the same name as a column in y
>>>>> Gabriel Becker <gmbecker at ucdavis.edu>
>>>>> on Wed, 21 Feb 2018 07:11:44 -0800 writes:
> Hi all,
> For the record this approach isnt 100% backwards compatible, because
> names(mergeddf) will e incompatibly different. Thatx why i claimed
> bakcwards compatable-ish
exactly.
> That said its still worth considering
2015 Oct 07
4
authorship and citation
On Tue, Oct 6, 2015 at 4:58 PM, Adrian Du?a <dusa.adrian at unibuc.ro> wrote:
> Hi Gabriel,
>
> On Tue, Oct 6, 2015 at 10:59 PM, Gabriel Becker <gmbecker at ucdavis.edu>
> wrote:
>
>> [...]
>>
>> At the very least, this is seems to be a flagrant violation of the
>> *spirit* of the CRAN policy, which AFAIK is intended to enforce
>>
2018 Jan 30
2
as.list method for by Objects
by() does not always return a list. In Gabe's example, it returns an
integer, thus it is coerced to a list. as.list() means that it should be a
VECSXP, not necessarily with "list" in the class attribute.
Michael
On Tue, Jan 30, 2018 at 2:41 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:
> Hi Gabe,
>
> Interestingly the behavior of as.list() on by objects seem to