similar to: Is function(x){x}(5) a valid expression?

Displaying 20 results from an estimated 9000 matches similar to: "Is function(x){x}(5) a valid expression?"

2005 Nov 14
1
Tidiest way of modifying S4 classes?
I wish to make modifications to the plot.pedigree function in the kinship package. My attempts to contact the maintainer have been unsuccessful, but my question is general, so specifics of the kinship package might not be an issue. My first attempt was to make a new function Plot.pedigree in the .GlobalEnv which mostly achieved what I wanted to. However, I'm sure that's not the tidiest
2012 Nov 07
4
save/load and package namespaces
Could someone explain to me what namespaces are loaded/saved when objects are saved? Specifically, I'm using this: save(list = ls(all.names = TRUE, envir = envir), file = name, envir = envir) to save out everything from an environment. Later, loading it on another machine, I'm surprised to see the load failing for being unable to load certain packages. Could anyone help me understand
2011 Mar 17
2
Scope and apply-type functions
So, I've been confused by this for a while. If I want to create functions in an apply, it only uses the desired value for the variable if I create a new local variable: > lapply(1:5,function(h){k=h;function(){k}})[[1]]() [1] 1 > lapply(1:5,function(k){function(){k}})[[1]]() [1] 5 > Normally, a function will use values for a variable if the variable is local to the definition of
2006 Apr 09
2
type converters not being saved to workspace
Any one can explain why this happens or any work arounds? > setClass('foo') [1] "foo" > setAs('foo', 'character', function(from) from) > showMethods('coerce') Function "coerce": from = "ANY", to = "array" from = "ANY", to = "call" from = "ANY", to = "character" from =
2006 Apr 09
2
type converters not being saved to workspace
Any one can explain why this happens or any work arounds? > setClass('foo') [1] "foo" > setAs('foo', 'character', function(from) from) > showMethods('coerce') Function "coerce": from = "ANY", to = "array" from = "ANY", to = "call" from = "ANY", to = "character" from =
2009 Nov 05
2
Seeing "Corrupted transaction log file" error messages.
In V1.1.15 that I fell back to. Again: # 1.1.15: /usr/local/etc/dovecot.conf # OS: AIX 3 0001378F4C00 listen: *:143 ssl_listen: *:993 disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login login_processes_count: 12 login_max_processes_count: 774 max_mail_processes: 1024 verbose_proctitle: yes first_valid_uid: 200
2006 Mar 27
5
InPlaceEditor convertHTMLLineBreaks
I''m curious if anyone else has a need to disable *convertHTMLLineBreaks*. I actually need to show the <p>''s and <br>''s in the editor and browsing the source code, see that this isn''t configurable. Jamie
2006 Oct 24
9
[WARN] Got 99% CPU?
Hey folks, I ran into a few people at RubyConf who were having 99% CPU issues. Please contact me if you meet the following criteria: 1. You are running a production site. 2. You are experiencing 99% CPU errors. 3. This is frequent enough that you cannot manage it. Thank you. Please contact me off-list about it. -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/
2006 Mar 29
4
Ruby/OCI8 not working on Rails 1.1
http://rubyforge.org/tracker/?func=detail&atid=1051&aid=3960&group_id=256 I posted this bug yesterday. Seems to be confirmed, since someone else has the same problem on a different platform (Fedora 4 and Max OS X). So, if you are using Oracle, don''t be in a rush to upgrade to Rails 1.1 unless you have the time to figure this problem out for yourself. -- Lori Olson
2017 Oct 14
2
Another issue with Sys.timezone
(I reported the test failure mentioned below to R-help but was advised that this list is the right one to address the issue; in the meantime I investigated the matter somewhat more closely, including searching recent R-devel postings, since I haven't been following this list.) Last May there were two reports here of problems with Sys.timezone, one where the zoneinfo directory is in a
2017 Jul 03
1
System Start-Up Issue
On 07/03/2017 10:52 AM, m.roth at 5-cent.us wrote: > Chris Olson wrote: >> On Monday, July 3, 2017 5:58 AM, "m.roth at 5-cent.us" <m.roth at 5-cent.us> >> wrote: >> Chris Olson wrote: >> <snip> >>> I went on vacation right after an update to one of our virtual CentOS >>> 6.9 systems so it was not restarted for a period of
2017 Jul 03
3
System Start-Up Issue
On 07/03/2017 02:41 PM, Gordon Messmer wrote: > On 07/03/2017 05:07 AM, Chris Olson wrote: >> A progress >> bar at the bottom of the start-up screen never reaches completion. > > > Press "alt+d" on the keyboard to disable the graphical (or text) > progress bar and view the console output of the startup sequence. Is there a place (configuration file) where
2006 Mar 06
4
Change to set_fixture_class
So, I sat down to use set_fixture_class, and it bombed on the first thing I tried: set_fixture_class :content_drafts => "Article::Draft" I made a quick patch, and I''d appreciate a quick run through your tests to make sure it doesn''t disturb anything: http://dev.rubyonrails.org/ticket/4095 As I was typing this, I realized that the string gives us no benefits. I
2005 Jan 03
5
DHCP Attribute for TFTP server for Aastra 480i?
I have this Aastra 480i phone, and you can set the TFTP server IP address manually in the phone, but there should be a way to have it find the TFTP server information via DHCP. Does anyone know if this is possible, and if so, what is the attribute I have to set on my DHCP server? Thanks! __ Dana Olson Disclaimer: The information transmitted in this message is intended only for the person or
2006 Apr 03
2
Problems with STI in has_many/belongs_to in Rails 1.1
I have a problem that surfaced in my attempt to upgrade my application to Rails 1.1. We have a STI model on the "belongs_to" side of a has_many/belongs_to relationship. All my unit tests for this model pass, and the relationships all seem to work fine. But in my functional tests, I''m getting errors. I''ve traced it back into the call to the has_many
2017 Jul 03
2
System Start-Up Issue
None of the previous kernels will boot properly. On Monday, July 3, 2017 5:58 AM, "m.roth at 5-cent.us" <m.roth at 5-cent.us> wrote: Chris Olson wrote: <snip> > I went on vacation right after an update to one of our virtual CentOS 6.9 > systems so it was not restarted for a period of time.? Now it will not > complete boot-up with the gnome display never
2012 Nov 07
2
R + Hadoop on Amazon
Hello All, Having some issue with local machine, I need to locate myself on Amazon for running R and Hadoop with Amazon instance. After searching a lot, I can't able to take a decision for choosing Image for Amazon instance. Can any one using R + Hadoop on Amazon. Thanks [[alternative HTML version deleted]]
2003 Dec 15
1
Fw: Samba 3 Printing Problems
Anyone have any suggestions for this? --------------------- Repeatedly getting the following error, any help out there for this? I've dug around the internet for several hours with no luck. [2003/12/11 19:51:34, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(268) find_printer_index_by_hnd: Printer handle not found:_spoolss_writeprinter: Invalid handle (OTHER:1583:10554) Running
2005 Jan 20
7
VoIP-to-TDM processing on-card?
Are there any cards that work with * that do the VoIP-to-TDM processing on the cards, with multiple interfaces? The QuickNet Internet LineJack meets the description I believe, but it only has a single FXS or FXO. Are there any cards that have more than one FXS? Thanks. __ Dana Olson Disclaimer: The information transmitted in this message is intended only for the person or entity to which it
2005 Feb 16
3
Bug#295560: logcheck: Please include filename when reporting "invalid regular expression"
Package: logcheck Version: 1.2.34 Severity: wishlist I have a couple of home-made logcheck ignore files, and happened to have one unescaped (and unmatched) `(' in one of the filter lines. Because of this, cron sent a mail with the body "grep: Invalid regular expression" - the subject is the command in the "2 * * * *" line in /etc/cron.d/logcheck, of course. It would be