search for: showlist

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

2010 Mar 22
7
How to reference a select_tag within a form
...of vendor-names immediately under my Vendors textbox, which worked great as far as I was concerned. Then I tried to turn it into a real drop-down: 1. I added style="display:none" to the div so that the drop-down was hidden when the page opened 2. I added <%= button_to_function("ShowList", %<page.toggle :vendor_droplist> ) %> following the text_field Hiding the drop-down worked, but the button failed to restore it. Validating the resulting HTML revealed the a div is not permitted in the scope of a form. To solve this I removed the <div> opening and closing ta...
2011 Apr 27
1
Attempting to access an R list from within C code
...wing code gives an 'address (nil), cause unknown' error: R Code: dyn.load("thelib.so") list1<-list(c(1:3),c(11:13),c(21:23)) listLen<-length(list1) .C("myfunc",list1,listLen) C Code (kept in file thelib.c, compiled on Ubuntu x64 machine using R2.13.0): void showList(SEXP *obj, int *size) { SEXP *locObj=obj; int i; for(i=0;i<*size;i++){ Rprintf("Entry is %d: value is %f",i,REAL(*locObj)[1]); *locObj=CDR(*locObj); } return; } Any help is greatfully appreciated! Best wishes, Dr. Cormac Long. [[alternative HTML version deleted]]