search for: programatic

Displaying 20 results from an estimated 171 matches for "programatic".

Did you mean: programmatic
2010 Sep 11
1
'programatically' list or call objects for use in a function?
Esteemed R users and developers, How does one 'programatically' list or call objects for use in a function? For example, i thought i could do something better than this: save(A.cwb, B.cwb, C.cwb, D.cwb, E.cwb, F.cwb, file="afile.RData") with something like these- prfxs <- c("A", "B", "C", "D", &q...
2006 Oct 04
1
Re: Programatically checking if we''re in a domU or dom0
> Personally, I use the following command in a > startup script to check if we''re in a privileged > domain: > > grep -qsE ''^control_d$'' /proc/xen/capabilities Hi Andrew, thanks for your tip. Now I can easily determine wether I''m running on a modified kernel or not (by checking for the presence of /proc/xen). However, once I''ve found
2012 Jan 22
1
How to construct a formula
Hi, I need to construct a formula programaticly, and pass it to a function such as the linear mixed model lme. The help says it requires "a two-sided linear formula object describing the fixed-effects part of the model" but I do not know how to create this formula. I have tried various things using formula(x, ...), as.formula(o...
2007 Mar 05
3
programatically stopping acts_as_ferret drb server
I need a way to kill the ferret_server drb process programatically, so I can start/stop it as part of the capistrano deployment process. This should be as simple as adding some sort of stop method to ActsAsFerret::Remote::Server. I was just messing around and was able to do it by modifying method_missing to look for the :stop method and then calling DRb.thre...
2005 Mar 11
2
howto: plot location, web search
Hi, new to the list, R and rpy. my first post. using rpy, i find this r.X11(height=3, width=6) allows me to preset the size of a subsequent r.plot(x, y) but i've been unable to find documention on related aspects, such as programatic control of the plot window location on the monitor, or programatic resizing of a plot once it is generated. Are these possible? In general I've found it diffcult to use google to search for answers because "R" is not a very effective keyword. Are there tricks to googling for R info?...
2006 Oct 05
0
Re: Programatically checking if we''re in a domU or dom0
Thanks for your answers... But IMHO it''s hacky and error-prone to rely on the name of the host to determine if it''s a domU or a dom0 (or an unmodified kernel) :( I don''t like that much neither changing the name of the kernel :-/ I need to be able to determine, as a normal user (that is: non-root), if I''m running in a domU or not (I can already tell if
2005 Jul 28
1
Programatically Modifying Users
Hi all, I have been lurking here on and off for a while and have recently returned after being off-list for a few months, I've searched the MARC list archives and can't see any useful information for my situation. Basically, I have a system that calls out to the samba command line utilities pdbedit/smbpasswd etc to modify user account information. This is okay, but very slow and
2006 Aug 16
3
Reflecting on associations
Is there an easy way to programatically work out the associations on a model? If not, is there a positive reason it was omitted, or is it just something that hasn''t been implemented yet? Thanks Gareth
2001 Sep 18
3
OpenSSH linkable library
Has anyone considered making a linkable library of the OpenSSH code so that one could programatically interact with ssh? Or is there some other method to accomplish this? Thanks, -Eric
2008 Jan 07
3
Finding windows DLLs
The XML package relies on libxml2.dll (e.g., bundled with the CRAN binary) installed in library/XML/libs. Unfortunately, c:/WINDOWS/system32/libxml2.dll will be found and loaded before this. Is there any programatic solution? Thanks, Martin -- Martin Morgan Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M2 B169 Phone: (206) 667-2793
2011 Nov 01
4
building a subscript programatically
Hi, On ocasion, you need to subscript an array that has an arbitrary (ie. not known in advance) number of dimensions. How do you deal with these situations? It appears that it is not possible use a list as an index, for instance this fails: > x <- array(NA, c(2,2,2)) > x[list(TRUE,TRUE,2)] Error in x[list(TRUE, TRUE, 2)] : invalid subscript type 'list' The only way I know is
2013 Oct 16
1
Extract a predictors form constparty object (CHAID output) in R
...(contraceptive_method_used ~ wifes_education + husbands_education + wifes_religion + wife_now_working + husbands_occupation + standard_of_living_index + media_exposure) z <- chaid(longform, data = ContraceptiveChoice) # plot(z) z # This is the part I want to do programatically shortform <- formula(contraceptive_method_used ~ wifes_education + husbands_occupation) # The thing I want is a programatic way to extract 'shortform' from 'z' # Examples of use of 'shortfom' loglm(shortform, data = ContraceptiveChoice) Thanks in advance Christiaan...
2013 Mar 04
3
A problem with text manipulation
Hello again, Let say I have following vector: set.seed(1) Vec <- sample(LETTERS[1:5], 10, replace = TRUE) Vec Now with each repeated letter, I like to add suffix programatically. Therefore I want to get following vector: c("B", "B1", "C", "E", "B2", "E1", "E2", "D", "D1", "A") Can somebody tell me how to achieve that? Thanks and regards,
2006 Feb 11
5
[OT] How to prepend copyright notices to each source file
...o put GPL text and a copyright notice at the start of each source file. For the .rb files, this will look like: # Copyright 2006 Robert Jones........... and for the .rhtml files it will look like: <!-- Copyright 2006 Robert Jones......... Can anyone think of a neat way to do this prepending programatically on Linux, rather than by hand? I''m sure I can be done with awk, sed, grep etc. Thanks in advance, -- Robert Jones
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript? RHTML is a great implementation in that it puts HTML first, and Ruby second. I would have thought RJS would be the same way: a .js with ERb helpers for generating Javascript functions. RJS putting Javascript second means: - I have to learn a whole new set of commands to...
2016 Mar 30
2
Accessing xenstore from libvirt
Hi, is it possible to access xenstore through libvirt? Or at least any other programatic means other than calling xenstore-read/write through shell? I understand it is somewhat of a security risk but still... Thanks, Marin
2017 Nov 13
2
SAMBA4 API
I am looking for a way to programatically modify DNS settings from outside of my SAMBA4 DCs. I am working on creating a PHP inventory page, which (in an ideal world) would hook into our SAMBA4 domain controllers, allowing us to modify DNS records in the inventory, and then have the backend of the inventory communicate with the DCs ove...
2006 Mar 11
1
Chainboot to XP Embedded
...isk will have three partitions: [BOOT: (FAT16 w/ SYSLINUX)] [OS1] [OS2] OS1 and OS2 will both contain an XP Embedded system which is read-only and which will always boot from a hibernate file. What I'd like to be able to do if flip-flop between them at runtime (that is, run from OS1 and then programatically select the OS to boot into on the next boot). The catch is, in order to use the XPe hibernate-one-resume-many feature, both of these systems are read only so I just can't go and tweak the boot.ini file. I was looking at the chain boot capabilities of syslinux, but I haven't had luck ge...
2007 May 30
9
Specify attr_protected
...t this way is bad, just that I''m very green :) Question Two: I actually have a bunch of attributes that need to be protected. Rather than hand-writing a call to the ''it'' method for each attribute, could I just loop over an array of attributes that need to be checked and programatically define the ''it'' calls? Pseudo-code: describe Order do [:total, :id, :customer_ip, :status, :error_message, :updated_at, :created_at, :finalize, :tax, :shipping].each do |attribute| it "should protect #{attribute} attributes from mass assignment" do @ord...
2010 Oct 25
2
dataframe, transform, strsplit
...ught I could use 'strsplit' for it within 'transform', but I can't seem to get the right invocation. Here is a sample dataframe that has what I have, what I want, and what I get. Can someone tell me how to get what is in the 'want' column from the 'have' column programatically? tia, Matt df <- data.frame(have=c("a.b.c", "d.e.f", "g.h.i"), want=c("a","d","g")) df.xform <- transform(df, get=strsplit(as.character(have), split=".", fixed=TRUE)[[1]][1]) df.xform [[alternative HTML version dele...