Displaying 16 results from an estimated 16 matches similar to: "newton method"
2013 Feb 04
2
Modifying a function programmatically
Dear list
# I have a function
ff <- function(a,b=2,c=4){a+b+c}
# which I programmatically want to modify to a more specialized function in which a is replaced by 1
ff1 <- function(b=2,c=4){1+b+c}
# I do as follows:
vals <- list(a=1)
(expr1 <- as.expression(body(ff)))
expression({
a + b + c
})
(expr2 <- do.call("substitute", list(expr1[[1]], vals)))
{
1 +
2009 Mar 23
2
dput(as.list(function...)...) bug
Tested in R 2.8.1 Windows
> ff <- formals(function(x)1)
> ff1 <- as.list(function(x)1)[1]
# ff1 acts the same as ff in the examples below, but is a list rather
than a pairlist
> dput( ff , control=c("warnIncomplete"))
list(x = )
This string is not parsable, but dput does not give a warning as specified.
> dput( ff ,
2009 Mar 29
9
budgetdedicated server (ubuntu) down?
I was trying to update my wine package because synaptic said there was an update available and I got the following message
W: Failed to fetch http://wine.budgetdedicated.com/apt/pool/main/w/wine/wine_1.1.18~winehq0~ubuntu~8.04-0ubuntu1_amd64.deb
Could not connect to wine.budgetdedicated.com:80 (81.171.111.184). - connect (111 Connection refused) [IP: 81.171.111.184 80]
I also can not connect
2012 May 22
2
Creating functions with a loop.
Hi
I am trying to create n functions where each function is defined in function one step before, i.e. something like
ff.k(x) = ff.j(x) - sum(1:j), for j=k-1
Is it possible? If it isn't and I manually create each function then is their a way to call them through a loop? My objective is to calculate something like
result.k = ff.k(x1)/ff.k(x2) for k in 2:n
Thank you for your time,
2005 Apr 20
3
Keeping factors with zero occurrences in "table" output
Dear R group,
I have a data frame which contains data on preferences on 7 items (ranks 1
through 7) listed by each participant. I would like to tabulate this in a
7x7 table where the rows would be the items and the columns would be the
number of times that item received a particular rank.
I tried doing this by creating a matrix by "rbind"ing each vector obtained
using
2004 Mar 23
1
nlme question
I have a need to call and pass arguments to nlme() from within another
function. I use R version 1.8.
I have found an apparent way to make this work, but I would appreciate
some comments on whether this fix is really appropriate, or there is
another way to do it that does not involve changing the source code. I
don't have enough experience to start changing the sorurce code of a
library
2004 Apr 18
2
Error in gam?
I'm having some problems using variable names containing spaces (using
backticks) with gam (mgcv 0.9-6, R 1.8.1). Some toy code to reproduce
my problem is below. Am I doing something wrong, or should I pass this
bug on to Simon Wood? (Or do I need to rename my variables to get rid of
the spaces?)
Thanks,
Hadley
library(mgcv)
test <- data.frame(a = c(1:10), `a b` = c(1:10)^2,
2015 May 08
2
Q: respecting .ssh/id_rsa
On 5/8/2015 7:22 AM, Valeri Galtsev wrote:
> On Fri, May 8, 2015 8:58 am, James B. Byrne wrote:
>> While attempting to debug something else I ran across this:
>>
>> ssh -vvv somehost
>> . . .
>> debug1: Connection established.
>> debug1: permanently_set_uid: 0/0
>> debug1: identity file /root/.ssh/identity type -1
>> debug1: identity file
2015 May 08
0
Q: respecting .ssh/id_rsa
chmod 0700 .ssh
chmod 0600 .ssh/*
Keys can fail if you don't have that setup correctly.
Also do:
grep sshd /var/log/audit/audit.log| audit2allow -m sshd
# Will let you see what modules it will create.
grep sshd /var/log/audit/audit.log| audit2allow -M sshd
# Creates the modules
semodule -I sshd.pp
grep ssh /var/log/audit/audit.log| audit2allow -m ssh
# Will let you see what modules it
2001 Nov 25
0
Errors compiling on Sun Solaris 2.7
Using Sun Forte C
Compiling smbd/server.c
"/usr/include/sys/termios.h", line 38: macro CTRL redefines previous macro at "/usr/ucbinclude/sys/ttychars.h", line 76
"/usr/include/sys/termios.h", line 164: macro CEOT redefines previous macro at "/usr/ucbinclude/sys/ttychars.h", line 87
"/usr/include/sys/termios.h", line 167: macro CEOF redefines
2004 Jan 23
0
Samba 3.0.0 compile errors
Apologies first!
I am currently maintaining a very old SunOS 4.1.3_U1 server which is in a
sensitive location an cannot be upgraded. It will be replaced soon, but in the
meantime...
I need to upgrade my Samba 2.0.6 to Samba 3.0.0, but receive the following
compile errors:
jasperl}source% make
Using FLAGS = -g -O2 -I./popt -Iinclude
-I/home/jasperl/julian/local/src/samba-3.0.0/source/include
2020 Mar 26
0
[PATCH nbdkit 9/9] tests/old-plugins: Add plugin from nbdkit 1.18.2.
This is significant because it's a plugin which was from the last
stable release containing undefined symbols (in the internal plugins).
$ ldd -r tests/old-plugins/x86_64/Linux/v1.18.2/nbdkit-file-plugin.so
linux-vdso.so.1 (0x00007ffe86cdd000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f551b3e5000)
libc.so.6 => /lib64/libc.so.6 (0x00007f551b21b000)
/lib64/ld-linux-x86-64.so.2
2020 Mar 26
15
[PATCH nbdkit 0/9] Create libnbdkit.so
This creates libnbdkit.so as discussed in the following thread:
https://www.redhat.com/archives/libguestfs/2020-March/thread.html#00203
test-delay-shutdown.sh fails for unclear reasons.
This series starts by reverting "tests: Don't strand hung nbdkit
processes" which is because several other tests fail randomly unless I
revert this patch. I didn't investigate this yet so it
2005 Jun 14
1
Problem with samba broadcast
Hi all,
I''m new to shorewall and have been struggling with several problems for
several days now. Most of them are solved, but one still persists.
The firewall is running on my server under Debian Sarge (Kernel 2.6)
I''ve got three network interfaces:
ppp0 (DSL Internet)
eth1 (lan)
ath0 (wlan)
eth1 and ath0 are bridged together to br0.
The problem is, that Samba (also running
2003 Dec 01
0
No subject
Are you using wins?
Try lmhosts for the start?
Are all machines on the same subnet?
Just a few hints to start with ...
Christian
>
>
> I have absolutely no clue what I could do to fix it. The only solution I
> can think of, is to downgrade to redhat 6.2.
>
> Your help would be greatly appreciated.
>
> Stefan Kaes
>
> portax.com GmbH
> Zielstattstrasse 40,
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list.
I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without
modifications.
How did I try it?
Created a (non-root) build environment (not a mock )
Installed the kernel.scr.rpm and did a
rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee
prep-out.log
The build failed at the end:
Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL
Checking