Possible error in BulkCreateFromHITLayout #114
Comments
Thanks. I think you're right. I'm on the road at the moment, but will try to fix this as soon as I can. |
Hey, @tylerascott, I believe I've fixed this. Will you give it a try and make sure it works for you as expect? (And sorry for the delay in getting it fixed.) |
Hello, if (length(annotation) != 1) { is not activated. Then, if this later if statement is TRUE: for (i in 1:nrow(input)) { the function doesn't find an annotation for anything but i = 1, so only if (length(annotation) == 1) { This worked for me, but I'm unsure if this has any unforeseen consequences. Anyways, the important parts of the function seem to be working great. -tyler On Sat, Jul 23, 2016 at 7:31 AM, Thomas J. Leeper notifications@github.com
Tyler Scott |
Yes, that's definitely a mistake. Just sent a patch for it. Thanks for your bug reports! Very much appreciated. |
Hello,
I am having trouble getting the function BulkCreateFromHITLayout to work, as it gives me the following error:
Error in GenerateHITLayoutParameter(names = NULL, values = unlist(input[i, :
length(names) must equal length(values)
In looking at the code for BulkCreateFromHITLayout() (pasted below), I believe that the issue relates to the fact that in the call to GenerateHITLayoutParameter(), names=NULL, but running unlist(input[i, , drop = TRUE])) results in an unnamed value. I apologize if I am missing something obvious here.
The text was updated successfully, but these errors were encountered: