Displaying 20 results from an estimated 5000 matches similar to: "Does R have a "const object"?"
2011 Apr 30
2
create namespace without creating a package?
Hi all,
I am a C++/C# programmer who is new to R. I would like to use something like "namespace" to organize my functions without creating a package. How can I do this? Thanks!
xiagao1982
2011-04-30
[[alternative HTML version deleted]]
2009 Oct 04
1
Modify base R functions in Rprofile.site
Hi everyone,
I want to modify two base R functions 'parse' and 'deparse'
immediately after R has started, so I added some code in the file
'Rprofile.site' under the 'etc' directory. Here is a simple example:
parse=function(...){
base::parse(...)
}
I'll get an error when I start R as follows:
Error: cannot change value of locked binding for
2018 Dec 21
2
Bug report: R.home() cause package Rcpp failed executing sourceCpp, similar bug are labeled "BUG 16660" since 2016 and here I could provide a solution that tested in my laptop.
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16660
Here is the bug, which R.home may generate a path contains a whitespace.
this will cause Rcpp failed executing sourceCpp
> sourceCpp("b:/2018-12-14/src/18020/MCMC.cpp")
Error in system(cmd, intern = !showOutput) : 'D:/Program' not found
Error in system(cmd, ignore.stderr = TRUE, intern = TRUE) :
2009 Jan 23
1
overwriting '<-' and infinite recursions
Hello all,
I'm having a problem when overwriting the '<-' function and was told
I'd better post it here for help. The reason why I need to overwrite
it is complicated and not easy to tell in a few words; but this seems
the only clean option other than hacking R's core source code. My code
looks like:
# in .onLoad of a package; or if you want to test, put it in a function
2011 May 02
1
How to pass objects from local() to GlobalEnv
Hi all,
I create some objects in local(), and want to pass them to GlobalEnv. How can I do this? Thanks!
xiagao1982
2011-05-02
[[alternative HTML version deleted]]
2011 May 19
1
Does a data frame have indexes for columns?
Hi all,
I wonder if I can create indexes for columns in a data frame to speed up data selection by matching column values, just like indexes for large tables in a relational database? Thank you!
xiagao1982
2011-05-19
[[alternative HTML version deleted]]
2007 Apr 23
2
Documentation for namespaces
Brian Ripley recently replied to a comment of mine by referring to
a function 'assignInNamespace', which I had not heard of.
Is there a good write up on name spaces in R? There are little tidbits
in the manuals on the R site, but I found nothing substative. I'd like
to understand these better.
Terry Therneau
2010 May 29
3
S4 dispatch for .DollarNames (utils)
Hello,
I'm trying to make .DollarNames generic and implement a method for it in
a package. .DollarNames is the function that is now called to get
completion possibilities.
My R code looks like this:
setGeneric( ".DollarNames" )
setClass("track",
representation(x="numeric", y="numeric"))
## A class extending the previous, adding one more
2011 Jan 28
2
Injecting code in a package?
Dear list,
I''ve had this a few times now, and wonder if this is possible:
I''m using a package, often for plotting something, but I want to tune the
way the plotting goes, in a way that was not foreseen by the maker of the
package.
Now, most of the time, these kinds of R functions (say pkg::plot.something)
call into other R functions (say pkg::plot.something.internal), and
2018 Apr 19
2
odd assignInNamespace / setGeneric interaction
>>>>> Michael Lawrence <lawrence.michael at gene.com>
>>>>> on Wed, 18 Apr 2018 14:16:37 -0700 writes:
> Hi Bill,
> Ideally, your coworker would just make an alias (or shortcut or
> whatever) for R that passed --no-save to R. I'll try to look into this
> though.
> Michael
Yes, indeed!
As some of you know, I've
2016 Oct 15
5
How to remove memcpy
On Sat, Oct 15, 2016 at 04:01:36PM -0700, Mehdi Amini via llvm-dev wrote:
>
> > On Oct 15, 2016, at 3:56 PM, Wolfgang McSneed via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> >
> > Hi,
> >
> > I am hoping that someone can help me figure out how to prevent the insertion of "memcpy" from the assembly source.
> >
> > My target is an
2008 Mar 13
3
Sealed for setGeneric
Hi the list
When two setGeneric occurs on the same function, the second erage the
first and erase all the function previously define.
Is it possible to prevent that ? Is it possible to declare a setGeneric
that can not be erased later ?
Something like the |sealed for setMethod...|
||
|Thanks|
||
Christophe
2018 Apr 18
2
odd assignInNamespace / setGeneric interaction
A coworker got tired of having to type 'yes' or 'no' after quitting R: he
never wanted to save the R workspace when quitting. So he added
assignInNamespace lines to his .Rprofile file to replace base::q with
one that, by default, called the original with save="no"..
utils::assignInNamespace(".qOrig", base::q, "base")
2018 May 25
4
syscolcheck error / Could not convert sid S-1-5-32-544 to uid
On Fri, 25 May 2018 15:07:57 +0100
Rowland Penny via samba <samba at lists.samba.org> wrote:
> > running "samba-tool ntacl sysvolcheck" doesn't fix this.
>
> Well it wouldn't, they are both borked.
>
> Just do administration from Windows
OK, maybe this is something which should be mentioned in the wiki. The
reason I got to this was that I wanted to
2006 Jan 18
7
System hangs silently
I have a total of 20 CentOS 4.1 systems running on fairly new
hardware. About 6 of them are experiencing strange hangs without any
indication -- nothing in /var/log/messages nor on the console --
sometime within 10-30 minutes after a reboot. The systems still
responds to ping but you can't ssh to it. At the console, you could
type "root" at the user prompt but it hangs immediately
2009 Feb 18
11
Confused about prerequisites for ZFS to work
I''m hoping to get some general clues about what all is required to get
an experiment going with zfs.
I''ve managed to install osol-11 in a vmware on windowsXP host from a
recent *.iso.
I''m following along with Simon''s blog showing how to set up ZFS. I''m
newbie with both ZFS and Solaris but the instructions seem pretty
clear.
However I''m
2006 Sep 14
4
Compiling Kernel with raid driver for my Dell poweredge 2850 RAID Controler
Hello
I have a problem to boot my xen kernel,
I have a debian sarge 3.1 stable, download xen-3.0.2-src.tgz, extract and
compil it with the command "make world"
But at boot I have an error : "cannot open root filesystem sda1"
My raid controler is a perc4/di raid 5 controler
lspci -v said :
0000:02:0e.0 RAID bus controller: Dell PowerEdge Expandable RAID controller
4 (rev
2011 May 31
1
assignInNamespace and new bindings
Hello,
assignInNamespace refuses to assign an object to a name that is not
already used in the namespace.
Something like this would make it possible:
--- src/library/utils/R/objects.R (revision 56024)
+++ src/library/utils/R/objects.R (working copy)
@@ -252,8 +252,9 @@
stop("environment specified is not a package")
ns <- asNamespace(substring(nm, 9L))
2012 Dec 11
1
Reassign functions called by other functions in package graphics
I am trying to get a function written in R that calls a cascade of functions from the graphics package, and I want to eventually call replacements to functions in the graphics package instead of the originals. Specifically, I have a function that calls qqnorm in stats, which calls qqnorm.default in stats, which calls plot in graphics, which calls plot.default and plot.new, and I want my own
2002 Apr 14
1
Suggestion for implementation
I wonder if it was possible (and desireable) to implement means to
protect data objects (and functions) from overwriting them. So for
instance:
> x <- 5
> protect(x)
> x <- 8
Error: x is read only
Or would that be against the philosophy of R to be compatible to S?!
Just a RFC ;-)
Yours,
Christoph.
ps. Your probably know the situations that let you think of such a
feature