search for: nenter

Displaying 9 results from an estimated 9 matches for "nenter".

Did you mean: center
2006 Jun 29
1
Passing argument in nested function calls
...so that when extractArgs() is called within getArgs(), it behaves the same way as getArgs() and extracts the argument and argument name? Can we unstring passed or change it into another mode? I'll appreciate any help or pointers. Thanks. Aarti getArgs <- function(...) { cat("\nEntering getArgs()\n\n") args <- list(...) cat("In getArgs(), names(args[1]) is ") cat(names(args[1])) cat(" and args[[1]] is ") cat(args[[1]]) cat("\n") passed <- paste(names(args),"=", sQuote(args)) extractArgs(passe...
2005 Dec 03
2
How to catch value
...R users: I have a problem about catch the value from function. I have following two functions (part): fbolus1 <- function() {......... par<-data.frame(Parameter=c("kel","Vd"),Initial=c(0)) check(par) .....} check<-function(par) { if (par[ ,2] <= 0){ cat("\nEnter again (y/n) ?\n\n") ans<-readline() if (ans == "n" ){ return(tidy.up()) } else{ cat("\n") par<-edit(par) } } } I wonder if it is possible to catch the value ("par" in this example) which "check" function generated and...
2019 Feb 02
2
[llvm-xray] llvm-xray cannot log every functions
...columnSecond); // Function to display resultant matrix after multiplication. display(mult, rowFirst, columnSecond); return 0; } void enterData(int firstMatrix[][10], int secondMatrix[][10], int rowFirst, int columnFirst, int rowSecond, int columnSecond) { int i, j; printf("\nEnter elements of matrix 1:\n"); for(i = 0; i < rowFirst; ++i) { for(j = 0; j < columnFirst; ++j) { printf("Enter elements a%d%d: ", i + 1, j + 1); scanf("%d", &firstMatrix[i][j]); } } printf("\nEnter elements of matrix 2:\n"); for(i = 0; i < rowSecond; ++...
2008 Mar 21
0
Fwd: Is select() untrustworthy on Windows when used with handles from popen3?
...(main):001:0> require ''win32/open3'' => true irb(main):002:0> i,o,e = Open3.popen3(''date'') => [#<IO:0x2b42a4c>, #<IO:0x2b42a24>, #<IO:0x2b42a10>, 3164] irb(main):003:0> o.sysread(70) => "The current date is: Thu 03/13/2008 \nEnter the new date: (mm-dd-yy) " irb(main):004:0> select([o],nil,nil,1) => [[#<IO:0x2b42a24>], [], []] irb(main):005:0> o.sysread(1) # => here, it hangs... even though it *says* there''s input to read ]== Since we hang at this spot, I''m sorta hosed... how can I tr...
2003 Oct 18
1
'passwd chat' for Debian Woody password sync
...ld password is 'p' and the new password is 'ppppp' most examples on the web use this format. but Debian clearly asks first for the existing password, so it would appear most examples I can find are wrong. so I've tried using this: passwd chat = (current)\sUNIX\spassword:*%o\nEnter\snew\UNIX\spassword:*%n\nRetype\snew\UNIX\ spassword:*%n\n most examples I see use the syntax '\n' but the samba.org documentation says to use '\\n' similarly I see '%u' used but the samba.org documentation says to use '%U' some examples puit a ' .' at th...
2009 Jan 20
0
work-around for debugger broken (by changed behaviour of get under R 2.8?) when functions have ... arguments
...cat(gettext("Message: "), msg) n <- length(dump) calls <- names(dump) repeat { cat(gettext("Available environments had calls:\n")) cat(paste(1:n, ": ", calls, sep = ""), sep = "\n") cat(gettext("\nEnter an environment number, or 0 to exit ")) repeat { ind <- .Internal(menu(as.character(calls))) if (ind <= n) break } if (ind == 0) return(invisible()) debugger.look(ind) } }
2006 Nov 21
1
strange R GUI crash
Hi all, I know I shouldn't really expect the following to work, but it provokes a crash of the GUI on my computer (Win xp professional). --- >sessionInfo() Version 2.3.1 (2006-06-01) i386-pc-mingw32 attached base packages: [1] "methods" "stats" "graphics" "grDevices" "utils" "datasets" [7] "base"
2011 Dec 23
2
missing value where TRUE/FALSE needed
Merry Xmas to all, I am writing a function and curiously this runs sometimes on one data set and fails on another and i cannot figure out why. Any help much appreciated. If i run the code below with data <- iris[ ,1:4] The code runs fine, but if i run on a large dataset i get the following error (showing data structures as matrix is large) > str(cluster.data) num [1:9985, 1:811] 0 0 0 0
2016 Nov 15
2
Missing objects using dump.frames for post-mortem debugging of crashed batch jobs. Bug or gap in documentation?
Martin, thanks for the good news and sorry for wasting your (and others time) by not doing my homework and query bugzilla first (lesson learned! ). I have tested the new implementation from R-devel and observe a semantic difference when playing with the parameters: # Test script 1 g <- "global" f <- function(p) { l <- "local" dump.frames() }