similar to: string syntactic sugar in R? - long post

Displaying 20 results from an estimated 1000 matches similar to: "string syntactic sugar in R? - long post"

2013 Feb 04
2
Contract Syntactic Sugar
## the following is a dream: add some sugar syntax to allow for contracts with teeth (in and out checking) > is.positive <- function(x) (all(x>0)) > exponentiate <- function( x ::is.data.frame , exponent ::is.numeric is.positive) :: is.vector is.numeric { x$base :: is.positive ## error also if base does not exist in x; may need some special IQ x$base^exponent }
2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol substitution, e.g. someFcn("pi=${pi}"), anotherFcn("pi=@pi@") and so on becomes "pi=3.141593". I am aware of the following: ** gsubfn() in the 'gsubfn' package, e.g. > gsubfn( , , "pi = $pi, 2pi = `2*pi`") [1] "pi = 3.14159265358979,
2002 Sep 06
1
Compile error on Solaris Sparc
I have searched through the archives, and on google, but I was not able to find anything on this type of error. Although the docs say Wine only supports x86, I found some articles where people have gotten it to work. Basically the error is: gcc -c -I. -I. -I../../include -I../../include -g -fPIC -D__WINE__ -D_ADVAPI32_ -D_REENTRANT -I/usr/openwin/include -o advapi32.spec.o advapi32.spec.c|head
2006 Jun 12
1
Ruuid had non-zero exit status (PR#8965)
> source("http://www.bioconductor.org/biocLite.R") > biocLite(c("Ruuid")) Running getBioC version 0.1.6 with R version 2.3.1 Running biocinstall version 1.8.4 with R version 2.3.1 Your version of R requires version 1.8 of Bioconductor. trying URL 'http://bioconductor.org/packages/1.8/bioc/src/contrib/Ruuid_1.10.0.tar.gz' Content type 'application/x-gzip'
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created. As part of this patch: - required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago; - newer version of libdevmapper allowed to simplify code base a little bit; -
2018 May 15
1
[PATCH libldm v2 0/1] Fix crash while creating mapper for a volume which lacks of partitions.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-May/msg00058.html v2: - more correct explanation of a crash reason. Mykola Ivanets (1): Fix crash while creating mapper for a volume which lacks of partitions. src/ldm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.0
2014 Jun 13
4
[libldm 1/3] relax uuid, zlib version requirements
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 469ea96..0e7e2ea 100644 --- a/configure.ac +++ b/configure.ac @@ -85,14 +85,14 @@ PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.32.0], ] ) -PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.5], +PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2], [
2016 Jun 28
7
.NET on Centos.
Hi there, I was reading about it. https://www.redhat.com/en/about/blog/net-core-now-available-and-supported-red-hat-enterprise-linux-and-red-hat-openshift What will happen with Centos and .NET? In the side of security and stability.
2005 Aug 19
2
FXO not picking up; baffled
I'm a newbie to Asterisk, but I'm moderately knowledgeable about phone systems. Right now, I'm most certainly confused. I have a TDM-04B (four FXO) and four analog FXO lines running into it from an AdTran 616. I have Asterisk working internally, although I could use some help getting incoming calls to answer properly and configuring my outbound dialplan. Here's where I'm
2007 Oct 13
1
Fwd: [sugar] video encoding
Hi, Is anyone able to help Mr Stoner? -Ivo ---------- Forwarded message ---------- From: Ed Stoner <ed@whsd.net> Date: Oct 9, 2007 5:32 PM Subject: [sugar] video encoding To: sugar@lists.laptop.org I would like to provide the functionality of a "video export" from within an activity I am working on. I'm starting with a png for each frame of the video and would like to do
2017 Apr 26
2
LibFuzzer syntax sugar flag
Hi All, Recently we have introduced a short syntactic sugar flag for compiling a file with libfuzzer: one just needs to add “-fsanitize=fuzzer” to the command line, and the driver would specify coverage flags and link with libfuzzer automatically. I wanted to ask whether it would make more sense to rename the flag to “-ffuzzer”, as it’s not a sanitizer, and it has a much heavier effect. Thanks,
2007 Feb 20
1
sugar constructor error
I tried out the sugar. The following code crashes: require ''rubygems'' require ''wx'' require ''wx_sugar/all'' frame = Wx::Frame.new(nil, :title => "Text") panel = Wx::Panel.new(frame) With the following error. 0.1.13/lib/wx_sugar/keyword_constructors.rb:244: [BUG] Bus Error Any ideas? Micah Martin 8th Light, Inc. 8thlight.com
2007 Jun 14
1
Sugar Auto-Dial with Asterisk?
Before I go and start coding.... is anyone aware of an auto-dialer plugin for Sugar CRM that will allow me to click a button when I'm in someone's account and have my phone ring and then connect me to them? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070614/fa000766/attachment.htm
2007 Apr 04
1
wx layout with sugar
I''m sure this will be user error on my part, but I can''t seem to get the following to layout properly. Basically, I want the p1 to fill the available space and p2 to be as small as possible (with the root panel filling all the available space). With the following code, the buttons in the p2 end up being truncated, (i.e. the bottom line is missing). Where am I going
2007 Apr 03
0
[946] trunk/wxsugar/samples/sugar-sample.rb: Illustrate enumerable_controls and has_style
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2017 Apr 28
2
LibFuzzer syntax sugar flag
I think libfuzzer deserves its own flag. I view fuzzing as a smarter testing technology while sanitizers are associated with inserting additional checks into the program. The different linking behavior is another major difference. Anna. > On Apr 27, 2017, at 4:08 PM, Kostya Serebryany via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > on the one hand, -fsanitize=fuzzer might
2006 Nov 04
0
login sugar generator
After being frustrated (yet again) last week when attempting to use the salted_login_generator in a new rails project, I have modified it so that it works better for my needs. Since the SaltedHashLoginGenerator wiki page seems to indicate many people are frustrated by this package which is very nice but has been broken since rails 1.1.4 I think, I have gem-ified my version of the generator and
2010 Aug 05
1
Sciviews-K -- object 'httpdPort' not found
Hi, I'm trying to install Sciviews-K on Linux Ubuntu 9.10 (karmic) but I'm not able to establish the connection between Komodo and R. Here;s the error I get, plus some diagnostic info: R version 2.9.2 (2009-08-24) R is SciViews ready! Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :   object 'httpdPort' not found > ls() [1] "svStart" > Sys.info()
2006 Dec 24
0
[800] trunk/wxruby2/doc/textile/treectrl.txtl: TreeCtrl#traverse has moved to wx sugar
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2015 Nov 03
1
Fwd: Rcpp sugar dpois
Hi. Here is a piece of cpp code. It works, but I do not understand the rational for the use of "R::dpois" to call the function dpois since in the examples I have always found directly "dpois" or "Rcpp::dpois" that both do not work in my code. Could anyone be so patient to explain me why should it be like that? Thaks a lot, Enrico #include <Rcpp.h> using