search for: testlist

Displaying 20 results from an estimated 54 matches for "testlist".

2006 May 27
1
Trouble passing list or non-list to function using ...
...ven't quite figured out how to do this. Thank you in advance, -jason ##BEGIN TEST CODE ########################################################### testme<-function(...){ dotlist<-list(...) dotlist } nm<-"age" testme(age=NA) testme(nm=NA) testme(age=NA,age2=NA) testlist<-list("age","age2") for (i in 1:length(testlist)){ print(testme(testlist[i])) } ##END TEST CODE ############################################################# ##BEGIN RESULTS ############################################################# > testme<-function(...){...
2010 Jan 15
4
transposing a list of vectors
I have a list of vectors, all forced to be the same length: testlist <- list( shape=c(0, 0, 2), cell.fill=c("red","blue","green"), back.fill=rep("white",3), scale.max=rep(100,3) ) > str(testlist) List of 4 $ shape : num [1:3] 0 0 2 $ cell.fill: chr [1:3] "red" "blue" "gree...
2012 May 03
1
deparse(substitute(x)) on an object with S3 class
...ed S3 class? In my actual problem, my print method is part of a package, and the method is registered in the NAMESPACE, if that should make a difference. > print.testclass <- function(x,...){ xname <- deparse(substitute(x)) cat("Your object name is",xname,"\n") } testlist <- list() testlist[[1]] <- 1:10 class(testlist) <- "testclass" # This does not work as expected: > testlist Your object name is structure(list(1:10), class = "testclass") # But this does : > testlist2 <- unclass(testlist) > print.testclass(testlist2) Yo...
2011 Oct 22
3
Wine 1.3.31 fails to compile in git
...INE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wwrite-strings -fno-omit-frame-pointer -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o testlist.o testlist.c ../../../tools/winegcc/winegcc -m32 -B../../../tools/winebuild --sysroot=../../.. -fasynchronous-unwind-tables dispatch.o olefont.o olepicture.o safearray.o tmarshal.o typelib.o usrmarshal.o varformat.o vartest.o vartype.o test_reg_i.o tmarshal_i.o tmarshal.res testlist.o -o olea...
2011 Nov 10
2
Removing numbers from a list
I am using gsub to remove numbers for each element of a list. Code is given below. testList <- list("this contains a number 1000","this does not contain") removeNumbers <- function(X) { gsub("\\d","",X) } outputList <- lapply(testList,removeNumbers) However, when I try to find the number of words in outputList as follows ou...
2012 Apr 13
0
Reference Class import() behaviour
...appears to work fine for everything except viewports and grid grobs. Code to illustrate the point follows. # This first case is an example to show that the importing process # I have been using works for simple cases test <- setRefClass("classTest", fields = c("nums", "testlist"), methods = list( initialize = function(nums = 1:10, testlist = NULL) { nums <<- nums testlist <<- testlist }, view = function() { print(nums) print(testlist) })) test2 <- setRefClass("classTest2", c...
2006 Jun 29
2
How to use a for loop to generate two sequences
Hi R users, Hope the question is not too simple: How to use a for loop to generate two lists as below: testlist <- list(test1, test2, ..., test1000) stringlist <- list("test1","test2",...,"test1000") Thanks Xiaohua
2011 Sep 30
1
Covariance-Variance Matrix and For Loops
Hello, I am very new to R (as my Subject probably indicates). I want to do something that should, I think, be very simple. I have five vectors in a list and I want to construct a covariance matrix out of them. Given a 5X5 matrix cvm1, and the list of vectors, cvm1_list, I thought the following would work (sorry cannot find code tags): for(i in 1:5){ for(j in 1:5){ cvm1[i,j] <-
2006 Dec 18
1
Can't find lcabinet when runnig make crosstest
Hi, when I run make crosstest, I get an error message saying it can't find lcabinet : make[2]: Entering directory '/home/colin/Devs/wine/dlls/advpack/tests' i686-mingw32-gcc advpack.cross.o files.cross.o install.cross.o testlist.cross.o -o advpack_crosstest.exe -lcabinet -luser32 -ladvapi32 -lkernel32 /usr/lib/gcc/i686-mingw32/3.4.4/../../../../i686-mingw32/bin/ld: can't find -lcabinet It seems that other libraries (user32, advapi32, kernel32) comes with mingw, but cabinet doesn't. Should it ? Or should it take...
2005 May 27
1
Crypt32: cant build tests
I cant build the new crypt32 tests added by Kees Cook with the latest CVS. I actually get undefined references to CryptUnprotectData : [syl@wine tests]$ make ../../../tools/winegcc/winegcc -B../../../tools/winebuild -mconsole protectdata.o testlist.o -o crypt32_test.exe.so -L../../../libs/port -lwine_port -L../../../dlls -L../../../dlls/crypt32 -L../../../libs -lcrypt32 protectdata.o(.text+0x39a): In function `func_protectdata': /home/syl/wine/dlls/crypt32/tests/protectdata.c:114: undefined reference to `CryptUnprotectData' protectda...
2017 Oct 04
0
[ANNOUNCE] intel-gpu-tools 1.20
..._reloc_overflow: Pass the right invalid presumed_offset igt/gem_cpu_reloc: Fix presumed_offset igt/gem_ctx_switch: Actually force the context-switch igt/gem_exec_fence: Test EXEC_FENCE_SUBMIT igt/core_auth: Print out the number of magics retrieved Revert "extended.testlist: Remove some test-subtest combinations" Revert "gem_exec_basic: Exercise the default engine selection" Revert "igt: Remove default from the engine list" igt/gem_spin_batch: Add per-loop timing info igt/gem_exec_params: Update negative flags test....
2011 Feb 06
2
A list within a list?
Hello, I am planning of building a list of lists specifically, my first list is some what of the sort: lidta <- list(m, p, r, s, q, A, B) where A and B are matrices that may be of different number of rows . The number of rows in matrix A and matrix B depends on the the values of m. The question is I don;t know how to put all the 1000 or so of these lists into a 'mega' list. Can you
2008 Oct 23
1
Wine install problem - undefined reference to `bMenuVisible'
...er32/tests' ../../../tools/winegcc/winegcc -B../../../tools/winebuild -mconsole broadcast.o class.o clipboard.o combo.o cursoricon.o dce.o dde.o dialog.o edit.o generated.o input.o listbox.o menu.o monitor.o msg.o resource.o scroll.o static.o sysparams.o text.o win.o winstation.o wsprintf.o testlist.o resource.res -o user32_test.exe.so ../../../libs/port/libwine_port.a -luser32 -lgdi32 -ladvapi32 -lkernel32 menu.o: In function `WndProc': /home/pat/wine-git/dlls/user32/tests/menu.c:1779: undefined reference to `bMenuVisible' /usr/bin/ld: menu.o: relocation R_386_GOTOFF against undefi...
2006 May 19
2
Problems with belongs_to table joins
...ass ProductFormat < ActiveRecord::Base end I have successfully created many to many table joins and they are working fine. But alas I can quite stumped on how to get a one to many join working ok. I would just like to list out the products and (where the type is specified their type) def testlist @products = Product.find(:all) end As far as I know the above will select all the products from the table and the belongs_to method will automagically create the method @products.product_types so in theory I should be able to list product information like so <%=product.title%> <...
2012 May 05
1
Query about memory used in list and dataframe
Hi, I had a query regarding which object, a list or a dataframe, consumes more R memory. Let me clarify this: For example, I have a df of 6 rows and 12 columns, say 'test'. I do object.size() and find it uses 3.3 KB of memory. I run a loop and make a list, say 'testlist', of 6 elements, each element being the above mentioned df 'test'. The size of this list is 19.9 KB, understandably. Now I combine this list into a dataframe using rbind. The df formed has 12 cols and 36 rows. The size of this df is just 5.8 KB, almost a 75% reduction in memory. I had...
2011 Aug 03
1
Samba4 on CentOS6 make quicktest failed
...SION Waf: Leaving directory `/root/download/samba-4.0.0alpha16/bin' 'build' finished successfully (5.131s) test: running (/usr/bin/perl /root/download/samba-4.0.0alpha16/selftest/selftest.pl --target=samba --prefix=./st --srcdir=/root/download/samba-4.0.0alpha16 --exclude=./st/skip --testlist="/usr/bin/python /root/download/samba-4.0.0alpha16/source3/selftest/tests.py|" --testlist="/usr/bin/python /root/download/samba-4.0.0alpha16/source4/selftest/tests.py|" --binary-mapping=nmblookup3:nmblookup3,smbclient3:smbclient3,smbtorture4:smbtorture,ntlm_auth3:ntlm_auth3...
2015 May 12
1
4.2.1 make quicktest error
...errors and 0 unexpected successes in 1 testsuites) A summary with detailed information can be found in: ./st/summary test: running (/usr/bin/perl /var/tmp/samba-4.2.1/selftest/selftest.pl --target=samba --prefix=./st --srcdir=/var/tmp/samba-4.2.1 --exclude=/var/tmp/samba-4.2.1/selftest/skip --testlist="/usr/bin/python /var/tmp/samba-4.2.1/selftest/tests.py|" --testlist="/usr/bin/python /var/tmp/samba-4.2.1/source3/selftest/tests.py|" --testlist="/usr/bin/python /var/tmp/samba-4.2.1/source4/selftest/tests.py|" --binary-mapping=nmblookup3:nmblookup,nmblookup4:nmb...
2017 Jun 09
1
[ANNOUNCE] intel-gpu-tools 1.19
...to find the optimal load balancing strategy. (Tvrtko Ursulin) Test changes: - Imported amdgpu tests from libdrm. (Chris Wilson) - Multiple other new tests. And many other bug fixes and improvements. And the full changelog follows: Abdiel Janulgue (4): intel-ci: Add initial generic testlist lib/igt_kms: Add support for 4K and audio HDMI EDID injection. tests/kms_hdmi_inject: Add test for HDMI injection capabilities. lib/tests: Add kmstest_edid_add_* selftests Ander Conselvan de Oliveira (3): lib/dummyload: Handle timeout in a new thread instead of signal handl...
2001 Oct 09
3
Unlisting while preserving object types?
Hi A toy example is probably the least ambiguous way of explaining what I'm trying to do. > library(ts) > zz<-list(a=rnorm(100),b=rt(100,3)) > zz.spec<-lapply(zz,spectrum,plot=F) > summary(zz.spec) Length Class Mode a 15 spec list b 15 spec list I'm looking for an elegant way to fetch components of the sub-lists a and b of zz.spec; e.g. to make a matrix
2015 Jan 23
2
[PATCH 1/2] mllib: tests: add tests for string_lines_split
...\nD"] (string_lines_split "A\nB\\\nC\\\nD"); + assert_equal_stringlist ["A\nB"; ""] (string_lines_split "A\\\nB\n"); + assert_equal_stringlist ["A\nB\n"] (string_lines_split "A\\\nB\\\n") + (* Suites declaration. *) let suite = TestList ([ @@ -124,6 +141,7 @@ let suite = "prefix" >:: test_string_prefix; "suffix" >:: test_string_suffix; "find" >:: test_string_find; + "string_lines_split" >:: test_string_lines_split; ]; ]) -- 1.9.3