Displaying 12 results from an estimated 12 matches for "newitem".
2009 Jul 22
3
How to replace NAs in a vector of factors?
...Just when I thought I had the basic stuff mastered....
# This has been quite perplexing, thanks for any help
## Here's the example:
db1=data.frame(
olditems=c('soup','','','','nuts'),
prices=c(4.45, 3.25, 4.42, 2.25, 3.98))
db2=data.frame(
newitems=c('stew','crackers','tofu','goatsmilk','peanuts'))
str(db1) #factors and prices
str(db2) #new names, but I want *only* the updates
is.na(db1$olditems) #a little surprising that '' is not equal to NA
db1$olditems=='' #oh good, at...
2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
...end
end
I am creating $itemnew as i could not get the item to pass on to the
page2 action any other way. that code is here (this is where I have
the problem)
# called when the user clicks on next from the first page
def page2
@generic_elements = GenericElement.find(:all)
@newitem = Item.find(:first,
:conditions => "id = ''#{$itemnew.id}'' and user_id =
''#{@user.id}''")
itemtablename = "Item_#{@newitem.id}"
#ItemDesign.new("Item_#{@newitem.id}")
@itemdesigns = ItemDesign.fin...
2006 Feb 15
1
S3 generics without NS and cleanEx()
...ot;)
+ set.seed(1)
+ options(warn = 1)
+ delayedAssign("T", stop("T used instead of TRUE"),
+ assign.env = .CheckExEnv)
+ delayedAssign("F", stop("F used instead of FALSE"),
+ assign.env = .CheckExEnv)
+ sch <- search()
+ newitems <- sch[! sch %in% .oldSearch]
+ for(item in rev(newitems))
+ eval(substitute(detach(item), list(item=item)))
+ missitems <- .oldSearch[! .oldSearch %in% sch]
+ if(length(missitems))
+ warning("items ", paste(missitems, collapse=", "),
+...
2003 Jun 25
3
patch draft for extended attributes on linux
...* The new item takes ownership wrt free() of the filename and attrname.
+ **/
+static int xa_load_one(char *filename,
+ char *attrname,
+ struct xa_list **list_ret)
+{
+ char *val;
+ size_t val_len;
+ int ret;
+ struct xa_list *newitem;
+
+ if (verbose > 2)
+ rprintf(FINFO, "loading \"%s\" attr \"%s\"\n", filename, attrname);
+
+ if ((ret = xa_lgetxattr_alloc(filename, attrname, &val, &val_len)))
+ return ret;
+
+ if (verbose >...
2004 Oct 28
2
Errors during make check
On a SUN 280R running Solaris 9...
The configure and make steps completed without errors. But when I try to
perform the make check step, I get the following:
$ make check FORCE=FORCE
`Makedeps' is up to date.
running code in 'base-Ex.R' ...*** Error code 1
make: Fatal error: Command failed for target `base-Ex.Rout'
Current working directory /usr/local/R-2.0.0/tests/Examples
***
2010 Apr 21
2
problem of R CMD check
Hi all,
Today, i just installed the newest R version 2.10.1 and other necessary
tools for building R package under windows,e.g. Rtools, perl. All are the
newest version.
After the correct configuration under windows, i use it to re-check my old
package. I found the following prolem when checking EXAMPLE, which did not
exist before this re-installation.
########
* checking examples ... ERROR
2007 May 29
0
Ajax sortable_element refresh
...<%= javascript_include_tag :defaults %>
</head>
<body>
<%= form_remote_tag(:update => "list",
:url => { :action => :add_item },
:position => "bottom" ) %>
<%= text_field_tag :newitem %>
<%= submit_tag "Add item" %>
<%= end_form_tag %>
<%= form_remote_tag(:delete => "list",
:url => { :action => :cyaitem }) %>
<%= text_field_tag :cyaitem %>
<%= submit_tag "Remove item&q...
2011 Mar 15
10
[LLVMdev] Prevent unbounded memory consuption of long lived JIT processes
This series of patches address several issues causing memory usage to grow
indefinetely on a long lived process.
These are not convenional leaks -- memory would have been freed when the LLVM
context or/and JIT engine is destroyed -- but for as long as they aren't the
memory is usage effectively ubounded.
The issues were found using valgrind with '--show-reachable=yes' option:
1.
2004 Aug 10
0
Check failed after compilation (PR#7159)
...options(warn = 1)
+ assign("T", delay(stop("T used instead of TRUE")),
+ pos = .CheckExEnv)
+ assign("F", delay(stop("F used instead of FALSE")),
+ pos = .CheckExEnv)
+ sch <- search()
+ newitems <- sch[! sch %in% .oldSearch]
+ for(item in rev(newitems))
+ eval(substitute(detach(item), list(item=item)))
+ missitems <- .oldSearch[! .oldSearch %in% sch]
+ if(length(missitems))
+ warning("items ", paste(missitems, collapse...
2005 Nov 29
6
draggable revert problem
Hello,
I have tried implementing the shopping cart ajax example and have run into
some problems. The only differences with the shopping cart is
My list of products are generated from a partial view
The images of the products come from an http link.
However, Iam seeing a strange behavior when I drag and drop the elements to
my cart. On the first drag and drop the image successfully reverts to
2008 May 05
3
troubles with R CMD check and examples under Ubuntu gutsy
Dear listers,
I was used to package pgirmess under Windows with everything OK, but,
for the first time, I had a trial this afternoon on Ubuntu 7.10 gutsy (I
have a double boot computer and work more and more under unix) and R
2.7.0. Everything went OK except this:
sudo R CMD check pgirmess
.....
* checking examples ... ERROR
Running examples in 'pgirmess-Ex.R' failed.
The error most
2006 May 25
13
.NET developer trying to understand some Rails basics
Hi All,
I''ve been a ASP.NET developer for the last few years and consider it to
be a pretty productive environment to work with. However, the
object-relational mapping (ActiveRecord) and simplicity of the Rails
framework and Ruby in general really appeals to me. .NET currently
doesn''t have something like Rails'' ORM - atleast not out-of-the-box.
Here''s my