search for: num_reps

Displaying 2 results from an estimated 2 matches for "num_reps".

Did you mean: num_recs
2005 Oct 03
3
Problem building/checking library that requires input from user
...am trying to check, build, and install. This is my 1st time doing this, so apologies in advance... ;) The package that I've written requires input from the user. It needs to know sample sizes and then runs some calcs, (sample sizes are just integers), and it gets this info from the user as num_reps <- readline("How many reps do you have... ") num_reps <- as.integer(num_reps) and then loops for(i in 1:num_reps) { #code } HOWEVER, I get this error msg when trying to check/build/install: Error in 1:num_con_biol_reps : NA/NaN argument Presumably this is because R thin...
2005 Oct 03
0
Problem building/checking library that requires input fro m user
What file are you putting these into? I believe this is the correct syntax for the \example{} section of an .Rd file. If you want to do this in a plain R file, (e.g. package/tests/somename.R), you can use if(interactive) { num_reps <- readline(""How many reps do you have... ") num_reps <- as.integer(num_reps) } else num_reps <- 10 instead. -G > -----Original Message----- > From: Ken Termiso [mailto:jerk_alert at hotmail.com] > Sent: Monday, October 03, 2005 11:42 AM > To: Warnes, Greg...