similar to: R Wrappers for "scanf-like" c functions.

Displaying 20 results from an estimated 1000 matches similar to: "R Wrappers for "scanf-like" c functions."

2004 Jun 03
2
returning strings to R from C functions
I'm using .C() and .External() and have no problems sending integers, reals or strings from R to C. Nor do I have problems sending integers or reals back from C to R. But I'm pulling my hair out trying to set a string value in a C function and then sending it back from C to to R. I've searched the usual sources and tried various casts, macros and allocation schemes, but I'm
2004 Oct 28
1
plot.baysian error = only 0's may mix with negative subscripts
Dear R users and developers After upgrading to Windows XP and R 1.9.1 and 2.0, I retried to execute plot.baysian() to a data set that I had used previously to plot with no problem in win2000 R1.8. The error I get is: Error in points(Mbar[-index], lods[-index], pch = ".") : only 0's may mix with negative subscripts Thanx in advance Dino P.S. I allready sent this message
2020 May 23
0
Re: RFC: *scanf vs. overflow
On Sat, May 23, 2020 at 09:28:26AM -0700, Paul Eggert wrote: > On 5/23/20 9:11 AM, Rich Felker wrote: > > > stopping on an initial prefix ... does not admit easily sharing a backend with strto*. > > I don't see why. If the backend has a "stop scanning on integer overflow" flag > (which it would need to have anyway, to support the proposed behavior), then >
2012 Jan 21
1
[PATCH] include/checkpatch: Prefer __scanf to __attribute__((format(scanf, ...)
It's equivalent to __printf, so prefer __scanf. Signed-off-by: Joe Perches <joe at perches.com> --- include/linux/compiler-gcc.h | 3 ++- include/linux/kernel.h | 8 ++++---- include/xen/xenbus.h | 4 ++-- scripts/checkpatch.pl | 6 ++++++ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/include/linux/compiler-gcc.h
2012 Jan 21
1
[PATCH] include/checkpatch: Prefer __scanf to __attribute__((format(scanf, ...)
It's equivalent to __printf, so prefer __scanf. Signed-off-by: Joe Perches <joe at perches.com> --- include/linux/compiler-gcc.h | 3 ++- include/linux/kernel.h | 8 ++++---- include/xen/xenbus.h | 4 ++-- scripts/checkpatch.pl | 6 ++++++ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/include/linux/compiler-gcc.h
2020 May 23
0
Re: RFC: *scanf vs. overflow
On Fri, May 22, 2020 at 08:06:34PM -0700, Paul Eggert wrote: > On 5/22/20 6:16 PM, Rich Felker wrote: > > A new feature > > will not reliably be usable for decades in portable software, but new > > documentation of existing universal practice would be immediately > > usable. > > We could do both. > > Also, we could change glibc's behavior in a simpler
2002 May 27
0
[Bug 258] New: scanf format not portable
http://bugzilla.mindrot.org/show_bug.cgi?id=258 Summary: scanf format not portable Product: Portable OpenSSH Version: -current Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: liug at
2013 Nov 24
0
dovecot patch: do scanf correctly
As far as I can tell, there are two places in which dovecot does not use scanf properly. This patch should fix that. -------------------------------------------------------------------------------- diff -r 8a3d0426f514 src/lib-dns/dns-lookup.c --- a/src/lib-dns/dns-lookup.c Sat Nov 23 23:22:09 2013 +0000 +++ b/src/lib-dns/dns-lookup.c Sun Nov 24 06:30:12 2013 +0100 @@ -102,7 +102,7 @@
2004 Sep 15
1
heatmap2
Can anybody tell me where to find a copy of heatmap2? I've seen it in my travels across the web but didn't bookmark it and can't find it again. Thanks in advance. Paul `-:-. ,-;"`-:-. ,-;"`-:-. ,-;"`-:-. ,-;"`-:-. ,-;"`-:-. `=`,'=/ `=`,'=/ `=`,'=/ `=`,'=/ `=`,'=/ `=` >==/ >==/
2004 Oct 07
3
replace a value in a vector
OK, so this is a really stupid question and should be incredibly simple to do but I can't figure it out. So maybe someone would be so kind as to tell me. I have a vector of zeros and ones. I want to replace all of the zeros with "black" and all of the ones with "gray". That's it. Any help would be appreciated. Thanks, Paul `-:-. ,-;"`-:-. ,-;"`-:-.
2020 May 22
6
RFC: *scanf vs. overflow
It has long been known that the C specification of *scanf() leaves behavior undefined for things like int i; sscanf("9999999999999999", "%i", &i); C11 7.21.6.2 P12 "Matches an optionally signed integer, whose format is the same as expected for the subject sequence of the strtol function with the value 0 for the base argument." C11 7.21.6.2 P10 "If this
2004 Sep 07
3
heatmap help
Dear R wizards, Hopeful someone can help me with what I believe is a pretty simple task. I pretty new to R so some (much) of the obvious escapes me. How do I get a distance matrix into heatmap? What do I tell distfun if what I'm trying to map is already an ordered distance matrix? I tried >heatmap(x, distfun=as.dist(x)) where x is the distance matrix but R gave me an error. Thanks in
2002 Aug 20
1
(no subject)
Following the "security = domain in Samba 2.x" document in the SWAT documentation page I do this: root@pc194-79:/usr/local/samba/bin# smbpasswd -j MDU -r pv-mdu-server1 -Ujohnm%xxxxxxxx Joined domain MDU. root@pc194-79:/usr/local/samba/bin# This is in [globals]: security = DOMAIN encrypt passwords = Yes password server = pv-mdu-server1 pv-mdu-server2 And now I start Samba via smbd
1998 Jul 05
0
R-beta: Suggestion for a very minor change to Rd.sty
Dear R gurus and users, for some functions in some of the many packages available for R, with the current definition of \Header given in Rd.sty, the heading bumps into the surrounding words in documentation printed via LaTeX. To alleviate this minor typographical mishap, I'd like to suggest the change to R/doc/manual/Rd.sty included below as a context diff. With this minor diff applied, the
2002 Aug 20
0
Printing Permissions
If anybody could help this would be much appreciated... Samba being used with Domain security, as a printer server with an NT 4.0 PDC and BDC. Can browse file shares, can act as printer admin (FINALLY !!), but cannot upload printer drivers, have created print$ share, have created W32X86 and WIN40 directories. When I try to print I get the following error message in machine specific log,
2007 Apr 18
1
Performing Merge and Duplicated on very large files
Hi, I am working with very large matrices (>1 million records), and need to 1. Join the files (can be achieved with Merge) 2. Find lines that have the same value in some field (after the join) and randomly sample 1 row. I am concerned with the complexity of merge - how (un)efficient is it? I don't have access to the real data, I need to send the script to someone who does, so I
2002 Aug 20
1
samba authentication not auth'ing
Trying to set up a SAMBA print server using SlackWare 8.1. Have successfully joined it to the domain, but cannot browse into the shares, as it constantly asks for a password, and refuses to accept any including root and NTamdin accounts. Anybody have any ideas error logs and smb.conf are below. This is from the machine specific log file: [2002/08/21 11:41:56, 0]
2002 Jun 18
1
Carbon R 1.5.1 + Bioconductor released
I have built and uploaded to CRAN the Carbon version of R for MacOS/MacOSX. You'll find the base set (rm151.sit) and the recommended packages (recommended.sit) separately or all in one single file (rm151_FULL.sit) on CRAN and their mirrors soon. I have also built the Bioconductor suite of packages (corresponding to the Bioconductor_1.0.tgz file) as it seems to be one of the most
2002 Jun 18
1
Carbon R 1.5.1 + Bioconductor released
I have built and uploaded to CRAN the Carbon version of R for MacOS/MacOSX. You'll find the base set (rm151.sit) and the recommended packages (recommended.sit) separately or all in one single file (rm151_FULL.sit) on CRAN and their mirrors soon. I have also built the Bioconductor suite of packages (corresponding to the Bioconductor_1.0.tgz file) as it seems to be one of the most
1998 Jul 06
0
R-beta: Printing documentation for R and all packages installed
Dear R gurus and users, in order to provide the local users of R with a printed copy of the ample documentation provided with R and the optional packages installed, I have introduced a minor change to the R/doc/manual/Makefile. Using GNU find, GNU sed, and features of GNU make, the LaTeX documentation found in the subdiretories of .../R/library/ is copied to .../R/doc/manual, and appropriate