Displaying 20 results from an estimated 600 matches similar to: "Coping with non-standard evaluation in R program analysis"
2018 Jan 04
0
Coping with non-standard evaluation in R program analysis
Hi Evan,
You may find some parts of what we are doing with genthat useful. Genthat is a tool
for creating unit tests by recording argument and return values of calls. This is
done by instrumentation of the source code.
The git repo with the code is here https://github.com/PRL-PRG/genthat
We don?t really deal with NSE though. It could be something worth thinking about for us.
The contact for
2006 Dec 19
2
configure don't check Qt libraries
..
checking for wnck_window_has_name... yes
checking for METACITY... yes
checking for Qt headers... /opt/qt/include
checking for Qt libraries... no
configure: creating ./config.status
..
..
gnome: no
kde: no
..
I have tried to compile kde window decorator, but "configure" don't
check my Qt installation and it don't have a option to specify the path.
Thanks for your
2018 Jan 04
0
Coping with non-standard evaluation in R program analysis
Evan,
The pryr package provides some utilities which may be handy here. In
particular see the function: is_promise.
Also, next time please post in plaintext.
Regards
Ben
> Hello R experts,
>
>
> I plan to develop a tool for dynamic analysis of R programs. I would like to trace function calls at runtime, capturing argument and return values. Following a suggestion made some time ago
2016 Jul 13
2
Nested tracing with custom callback
Hi all,
I would like to install a trace function that gets executed whenever *any* R function is called. In Python, for example, this functionality is provided by the `sys.settrace` function.
I am not aware of any public interface, at the R or C level, that can accomplish this. The `trace` function is inadequate because it does not support nested functions. The `Rprof` function provides only
2011 Oct 22
2
Expanding rows of a data frame into multiple rows
The setup: I have a data frame where one column is in list mode, and
each entry contains a vector of varying length.
I want to expand this into a data frame with one row for each member
of the list-mode column (the other values being replicated)
For example, an example input and the desired output would be:
input <- data.frame(site = 1:6,
sector =
2009 Aug 21
4
Where to put source code?
I'm trying to move from Matlab to R, and I'm stuck even getting
started. This sounds to me like the dumbest question in the world
but... how does one put R source code in files? Over the last three
days I've gone front to back through the Introduction to R and the R
Language Definition, and while I'm excited that the language is so
Lispish, none of what I read described how to
2013 Jul 07
2
The *tmp* variable
When complex assignments are performed, the R interpreter creates, then
removes a special variable *tmp*. However, when byte compiling is enabled,
it seems that a different mechanism for making compound assignments is used.
Would it be possible to eliminate *tmp* from interpreted R code as well? It
might be useful for a function to lock its own environment, and the
appearance and disappearance of
2017 Jan 02
2
cron job failures with a perl script containing Astro::Time
Everyone,
I am building a gateway server with a new : CentOS Linux release
7.3.1611 (Core)??with 3.10.0-514.2.2.el7.x86_64 kernel.
Everything was going find, but I was not able to get a particular
cronjob to function properly that contained a perl script with
Astro::Time as an include file. Astro::Time was installed with the use
of the cpan module downloaded from the Centos repositories.
The
2012 Apr 05
2
indexing data.frame columns
Consider the data.frame:
df <- data.frame(A = c(1,4,2,6,7,3,6), B= c(3,7,2,7,3,5,4), C =
c(2,7,5,2,7,4,5), index = c("A","B","A","C","B","B","C"))
I want to select the column specified in 'index' for every row of 'df', to
get
goal <- c(1, 7, 2, 2, 3, 5, 5)
This sounds a lot like the indexing-by-a-matrix
2018 Aug 13
2
substitute() on arguments in ellipsis ("dot dot dot")?
Interestingly,
as.list(substitute(...()))
also works.
On Sun, Aug 12, 2018 at 1:16 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 12/08/2018 4:00 PM, Henrik Bengtsson wrote:
>>
>> Hi. For any number of *known* arguments, we can do:
>>
>> one <- function(a) list(a = substitute(a))
>> two <- function(a, b) list(a = substitute(a), b =
2016 Feb 10
2
Test Failure OpenSSH 7.1 P2 on HPE NSE for key-commands
On February 9, 2016 7:28 PM, Darren Tucker wrote:
> To: Randall S. Becker <rsbecker at nexbridge.com>
> Cc: OpenSSH Devel List <openssh-unix-dev at mindrot.org>
> Subject: Re: Test Failure OpenSSH 7.1 P2 on HPE NSE for key-commands
>
> On Wed, Feb 10, 2016 at 10:35 AM, Randall S. Becker
> <rsbecker at nexbridge.com> wrote:
> > Thread split from my
2010 Jun 05
1
How to get the closing price from the the GOOGLE FINANCE site for NSEINDIA stocks
Sir,
How to get the closing price from this link
http://www.google.com/finance/historical?q=NSE:RCOM
I installed quantmod
getSymbols('NSE:RCOM',src='google')
gives me this error**********************
Error in download.file(paste(google.URL, "q=", Symbols.name, "&startdate=", :
cannot open URL
2024 Apr 14
1
Calling applyClosure from a package?
Hi,
Short version of my question: Rf_applyClosure was marked
attribute_hidden in Oct 2023, and I am curious why and if there is an
alternative interface to it planned.
Long version:
I have been toying with building a package that makes it easier to do
non-standard evaluation directly using promises, rather than wrapping
these in a custom type (like e.g. rlang does). The advantage of this
2011 Oct 18
1
problem with quantmod package
i am using quantmod package.it get stock quotes from google finanace. but
unfortunately i am not able to get the quotations of some stocks(e.g.
NSE:TCS,NSE:SAIL ) through the "getSymbol" command of this package although
they are available in the google finance website. anyone please help me.
thanks in advance.....
--
View this message in context:
2017 Aug 03
2
rnorm is not truly random used in the lm function
To whom it may concern,
I happened to run the following R code just to check the layout of the
output, but found that the code doesn't work the way I thought it should
work.
''
> lm(rnorm(100) ~ rnorm(100))
Call:
lm(formula = rnorm(100) ~ rnorm(100))
Coefficients:
(Intercept)
-0.07966
Warning messages:
1: In model.matrix.default(mt, mf, contrasts) :
the response appeared
2017 Mar 17
2
RFC: (in-principle) native unquoting for standard evaluation
I love the pointer analogy. Presumably the additional complication of scope
breaks this however. * itself would have been a nice operator for this were
it not prone to ambiguity (`a * *b` vs `a**b`, from which @ does not
suffer).
Would this extension require that function authors explicitly enable
auto-quoting support? I somewhat envisioned functions seeing the resolved
unquoted object (within
2009 Sep 03
5
abind, but on lists?
I'm trying to massage some data from Matlab into R. The matlab file
has a "struct array" which when imported into R using the R.matlab
package, becomes an R list with 3+ dimensions, the first of which
corresponds to the structure fields, with corresponding row names, and
the second and third+ dimensions correspond to the dimensions of the
original struct array (as matlab
2012 Oct 04
2
How to build a list with missing values? What is missing, anyway?
This is tangentially related to Hadley's question.
Suppose I'm building a function programmatically; I have assembled an
expression for the body and I know the names of the arguments it wants
to take.
Suppose I have some convenience function such that writing
make_function(alist(a=, b=), quote(a+b), environment())
is equivalent to writing
function(a,b) a+b
So how do I make the
2015 Apr 16
3
ClamAV reports a trojan
This morning I discovered this in my clamav report from one of our
imap servers:
/usr/share/nmap/scripts/irc-unrealircd-backdoor.nse:
Unix.Trojan.MSShellcode-21 FOUND
I have looked at this script and it appears to be part of the nmap
distribution. It actually tests for irc backdoors. IRC is not used
here and its ports are blocked by default both at the gateway and on
all internal hosts.
2006 Mar 08
4
PAP2 won't make two g729 calls at the same time
I have a Linksys PAP2. Identical setups for the two channels in both
the unit and in Asterisk. In particular, both channels enable g729 and
set it as the preferred codec, and have disallow=all and allow=g729 in
sip.conf.
If we make a call on one channel, it works (and uses g729), but if we
make a call on the other channel when the first one is still connected,
it fails. We have three g729