Displaying 20 results from an estimated 6000 matches similar to: "NULL assignment will change the expression's class into list"
2012 Mar 14
1
[ESS] completion in [] (R internal completion fails)
Hello,
I am forwarding this from ESS mailing list, as it's a failure of
internal R completion system:
This fails:
utils:::.assignLinebuffer('iris[iris$Spec')
utils:::.assignEnd(15)
utils:::.guessTokenFromLine()
utils:::.completeToken()
utils:::.retrieveCompletions() ## -> [1] "iris[iris$Spec"
This works
utils:::.assignLinebuffer('iris[ iris$Spec') # note the
2010 Nov 17
2
Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'
Hi there,
I''d like to choose between an "static" and "dynamic" access of a reference
class field, say ''a''.
myObj <- getRefClass("Blabla")$new()
Static: myObj$a
Dynamic: myObj$a.get() where the function retrieves the data
from a database (or some other location), stores it to a buffer and
2012 Mar 21
2
enableJIT() prohibits usual R debugging
Hi,
Browser doesn't work properly with the compiler enabled. It might be
intended behavior, but it's not documented.
compiler::enableJIT(1)
foo <- function(){
browser()
cat("here\n")
}
Browser doesn't stop, and I am getting:
> foo()
Called from: foo()
Browse[1]> here
>
Thanks,
Vitalie.
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform:
2008 Dec 02
4
Bug in "transform"?
Dear useRs,
Here is a weird behavior of transform function:
mtcars1<-matcars
transform(mtcars1,t1=3,t2=4)
Error in data.frame(`_data`, e[!matched]) :
arguments imply differing number of rows: 32, 1
instead, this works:
mtcars1$t1<-0
transform(mtcars1,t1=3,t2=4)
also works if applied in turn:
transform(mtcars1,t1=3)
transform(mtcars1,t2=4)
I often need to use this
2008 Nov 01
1
Splitting device for ggplots?
Dear UseRs,
For various reasons I need to plot multiple ggplots on one device
(preferably pdf). Is there a way to achieve that?
par(mfrow), split.screen() and layout() seem not to do the job.
Thanks,
Vitalie.
2009 Aug 28
1
names<- in data.frame (PR#13916)
Full_Name: Spinu Vitalie
Version: 2.9.0
OS: Windows
Submission from: (NULL) (130.115.113.15)
In assignment of "zero length" names to data.frame:
> tdf <- data.frame(rbind(c(1, 2), c(1, 2)))
> names(tdf) <- c("", "")
> tdf
structure(c("1", "1"), class = "AsIs") structure(c("2", "2"), class =
2013 May 05
1
Avoid entering {} evaluation in debugger
Hi,
f1 <- function(){
browser()
print("aaa")
}
f2 <- function(){
a <- 12
eval(envir = parent.frame(),
bquote({
b <- .(a)
}))
}
Now do,
f1()
and enter n RET and then {1+2}:
Browse[2]> {1 + 2}
debug at #1: 1 + 2
Browse[3]>
{} is now being debugged. This was never bothering me
2005 Apr 27
2
Getting the name of an object as character
This could be really trivial, but I cannot find the right function to get
the name of an object as a character.
Assume we have a function like:
getName <- function(obj)
Now if we call the function like:
getName(blabla)
and 'blabla' is not a defined object, I want getName to return "blabla". In
other word, if
paste("blabla")
returns
"blabla"
I
2012 Jun 15
2
Build fails with sysdata.rda in R dir
Hi,
I am getting a strange error with 15.0 which I've not seen with previous
versions of R.
If sysdata.rda is included in R directory of the package I am getting:
R CMD build betfairly.roxygen/
* checking for file ?betfairly.roxygen/DESCRIPTION? ... OK
* preparing ?betfairly?:
* checking DESCRIPTION meta-information ... OK
* excluding invalid files
Subdirectory 'R' contains invalid
2020 Jul 10
2
Way to start CDR when call is bridged ?
Hi,
in dialplan -Asterisk 16.2 from Debian Buster- we have
same = n,Dial(PJSIP/101&PJSIP/102&PJSIP/103,15,tT)
If thew call is not answered after 20 seconds, we launch a new dial with
same and/or other extensions
same = n,Dial(PJSIP/101&PJSIP/104&PJSIP/110,20,tT)
Looking in CDR we have at the end of the call (here we called 3
extensions which where ringing, let say 110
2012 Oct 02
1
[LLVMdev] Error prone default memory capturing convention of blocks.
Hi guys,
I've been using blocks for a while and found that current behavior is error prone. So I am going to propose to you the better one.
Motivation:
1) The __weak variables in blocks are very common pattern. So having any implicit default behavior makes thing worse.
2) Some stupid mistakes like:
__weak typeof (self) theSelf = self;
...^ {
theSelf.blabla = ..
....
[self blabla];
2013 Jun 05
2
Template not putting in new lines.
hi all,
Ive been having a bit of a trouble with something that should be pretty
simple.
My goal is to create a host file on a node with IP address and hostname
(specified in the node manifest). I created the manifests and templates
below but when I use them I get a hosts file without spaces or newlines,
like below.
Please help me figure out how do I add the spaces and new lines?
Or where
2006 May 02
1
Only one NDS_ldapsam possible?
Hi,
is there a way to define more than one NDS ldap server in smb.conf? It
seems that
only the first ldap server is used and if unavailable none of the other
backends are going to be tried. Samba then still tries to connect over
and over to the unavailable eDirectory-Server.
My passdb entry looks like this (it?s all in one line):
passdb backend = NDS_ldapsam:ldaps://serverA.blabla.com:636
2010 Mar 31
1
The exit code makes user confused while using '-' prefixed subcommands
guestfish returns 0 if the commands completed without error, or 1 if there was an error.
But the rule break when we use '-' prefix subcommands:
------------------------------------
$ guestfish <<\EOF
> blabla
> EOF
blabla: unknown command
$ echo $?
1
$ guestfish <<\EOF
-blabla
EOF
blabla: unknown command
$ echo $?
0
------------------------------------
I think it should
2006 Aug 07
3
simple if - then question
hi, could somebody tell me the difference between:
if not params[:id]
flash[:notice] = blabla''
redirect_to(:controller =>"calendar", :action => ''index'')
end
and:
if params[:id] == nil
flash[:notice] = blabla''
redirect_to(:controller =>"calendar", :action => ''index'')
end
the first one
2012 Oct 03
3
2.4-beta fixes for MinGW
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
With these one can build 2.4-beta (AKA 2.3.99.0) with mingw32 (gcc-4.7.0).
Note, however, that win32 subdirectory is:
1) Lacking a complete Makefile.am, so it can't be built with autotools.
2) Depends on MFC, and MFC is not provided by any MinGW toolset (and
MS' MFC is, most likely, highly incompatible with MinGW).
So you only get a console
2005 Aug 18
1
Creating directories before resource connect
When I have fileserver with many users homedirs (but all users from AD through
winbind), how can I autocreate /usr/home/blabla, when I have just create user
blabla in AD? Samba required existed directory to connect to resource,
preexec= starts only after succesful connection. I'd like to automate process
- when I have just create user blabla, when it connect first time to their
homedir at
2014 Jul 08
1
Database and variables
Hi list,
question regarding the result of a DB query. I have
database put Agora modele/IVR/AstreinteNagios/1 ${ASTR_State}
i=1 and I read the DB with
exten => IVR,n,Set(__PlayMe=${DB(${ASTRSVC}/IVR/${IVR}/${i})})
exten => IVR,n,NoOp(We read ${PlayMe})
Result:
-- Executing [IVR at Automates:8] Set("SIP/laotseu-00000001",
"__PlayMe=${ASTR_State}") in new stack
2010 Nov 07
1
Sweave: option keep.source=TRUE and package cacheSweave
Dear all,
When I use the cacheSweave package together with the Sweave option
keep.source = TRUE, all the LaTeX code before the Sweave code chunk is
included in the TeX file to be compiled. For example, with the
following Sweave file
\documentclass[12pt]{article}
\usepackage[nogin]{Sweave}
% Sweave options
\SweaveOpts{keep.source=TRUE, strip.white=TRUE, eps=FALSE, pdf=TRUE}
\begin{document}
2011 Apr 10
3
open.exe Virus W32.ATRAPS
Hello,
I am not sure if this is the correct mailing list to send this email...
I was trying to install on windows XP latest R-2.12.2 and my unvirus program
(Immunet 3.0) reports a virus at open.exe while this is unpacked:
W32.ATRAPS
Has anyone come across the same problem?
Best,
Costas
[[alternative HTML version deleted]]