search for: tmpf

Displaying 20 results from an estimated 77 matches for "tmpf".

Did you mean: tmp
2008 Dec 14
2
Help required to install package from a website
...ackage 'outside' of R. My operating system is Windows XP. Here's one attempt that does not work: where="http://staff.pubhealth.ku.dk/~bxc/MethComp/Archive/?C=M;O=D" install.packages("MethComp_0.4.1.tar.gz",contriburl=where) Warning messages: 1: In read.dcf(file = tmpf) ... : Line starting '<!DOCTYPE HTML PUBLI ...' is malformed! 2: In read.dcf(file = tmpf) ... : Line starting '<html> ...' is malformed! 3: In read.dcf(file = tmpf) ... : Line starting ' <head> ...' is malformed! 4: In read.dcf(file = tmpf) ... : Line star...
2015 Jan 23
2
LDA input validation
Hi, I'm using qmail + dspam + dovecot-lda. A typical .qmail file : | /usr/bin/dspam --client --deliver=stdout --user "$EXT@$USER" | /usr/bin/preline -f /usr/lib/dovecot/dovecot-lda -d "$EXT@$USER" -a "$EXT@$USER" -m "$EXT2" When dspam segfault or is killed, preline receive an empty content and only pass to dovecot-lda two headers ( Return-Path and
2007 Nov 25
1
Package Building under Windows with MikTeX 2.6
...e $retval = file_path($R::Vars::TMPDIR, $pat . $$ . sprintf("%05d", rand(10**5))); croak "Cannot find unused name for temporary file" if($n++ > 1000); } $retval; } ### * R_system sub R_system { my ($cmd, $Renv) = @_; my $tmpf = R_tempfile(); if($R::Vars::OSTYPE eq "windows") { open(tmpf, "> $tmpf") or die "Error: cannot write to '$tmpf'\n"; print tmpf "$cmd $Renv\n"; close tmpf; $res = system("sh $tmpf"); unlink($tmpf);...
2011 Sep 13
1
solving linear equations
I have a dataset X Y1 1200 1.375 4000 0.464 1333.33 0.148 444.44 0.047 148.148 0.014 49.383 0.005 16.461 0.004 I have to find a curve fit for the above dataset based on a 4-parameter logistic equation viz. Y1 = d + ((a-d)/(1+(X/cc)^b)), where X and Y1 are the values above. I need to know how to solve the above equation for values a, b, c, d. -- View this message in context:
2009 May 20
4
Functions returning functions
Dear All: I have a question regarding the behavior of functions. Say I define a function that returns another function : A <- function(parameters) { # calculations w/ parameters returning 'y' tmpf <- function(x) { # function of 'y' } return(tmpf) } The value of the parameters are stored in an environment local to the function. Then I call x<- something B<-A(x) When R executes this last statement, does it perform all the calculations inside function A again (i.e., all...
2019 Dec 03
2
Account locked and delayed user data propagation...
...ul logon) local LOD=$(ldbsearch ${LDB_OPTS} -b "${BASEDN}" "(&(objectClass=user)(sAMAccountName=$1))" lockoutDuration | grep "^lockoutDuration: " | cut -d ' ' -f 2-) if [ -z "${LOD}" ]; then LOD=0 fi TMPF=$(w2u "$((${LOT} + ${LOD}))") if [ ${TMPF} -gt ${NOW} ]; then return 0 fi # by default, is unlocked. return 1 } (w2u is a function that convert from windows timestamp to unix timestamp) return '1', particulary the lockoutTime is...
2011 Aug 19
1
Error in read.dcf(file = tmpf) : Line starting '<head> ...' is malformed!
...ct.org/doc/manuals/R-admin.html#Setting-up-a-package-repository and used this function as recommended: *write_PACKAGES()* Now, when I try to install or update my package, I get: *install.packages("bmisc", repos="http://www.benoitr.comze.com/R")** > Error in read.dcf(file = tmpf) : Line starting '<head> ...' is malformed!* Can someone help me with this ? Benoit ----------------------------------------------------------------------- R: 2.13.1 [[alternative HTML version deleted]]
2014 Feb 14
1
lda+ldap multiple users
...securepoint.de> -m INBOX > > and theres my problem. You have implicitly created mail aliases for your users. qmail has to resolve this alias "XY" into the users A and B. You could wrap your call to the Dovecot LDA by a script resolving the aliases somehow, e.g.: #!/bin/bash tmpf=/tmp/split.$$.tmp # save the message in case we have multiple recipients cat - >$tmpf ldapsearch "mailtarget=$1" samaccountname | \ awk '$1 == "sAMAccountName:" { print $2 } ' | \ while read uid; do dovecot-lda -d "$uid" ..... < $tmpf rc=$?...
2006 Aug 25
4
How to iteratively extract elements out of a list
Dear List, The following code produces a list, which is what I what: set.seed(123) tmpf <- function() { x <- rpois(rpois(1,4),2) } n <- 3 m <- replicate(n,tmpf()) m [[1]] [1] 3 2 4 [[2]] [1] 0 2 4 2 2 5 2 [[3]] [1] 2 0 4 1 0 Now I need something that would to extract iteratively (or as many times as the size of 'n') the values that are greater than 2 in each c...
2019 Dec 03
0
Account locked and delayed user data propagation...
...ve... > >> Do you mean apart from '$((${LOT} + ${LOD}))' should really be >> '$((LOT+LOD))' ? > Apart bashism, this seems not the point: > > root at vdcsv1:~# bash -vx /tmp/test > LOT=1 > + LOT=1 > > LOD=1 > + LOD=1 > > TMPF=$((${LOT} + ${LOD})) > + TMPF=2 > echo $TMPF > + echo 2 > 2 > > TMPF=$((LOT+LOD)) > + TMPF=2 > echo $TMPF > + echo 2 > 2 > > >> I take it that you are calling the function like this: user_is_locked gaio >> try it like this: res=$(...
2009 Jun 19
1
namespace? environment? how to manage functions?
...env::func" as in C++. The following code almost do the jobs I want - except that I need to add "env$" before defining each function. I can't do that because my functions are saved in different files. Anybody has any suggestion? Thx~ ## test code ## abc <- new.env() abc$tmpf <- function() print('hello, world!') attach(abc) abc$tmpf() tmpf() -- View this message in context: http://www.nabble.com/namespace--environment--how-to-manage-functions--tp24100485p24100485.html Sent from the R help mailing list archive at Nabble.com.
2008 Jul 03
1
Installation of packages via GUI, Mac OS X
...urs. The same thing occurs if I go form the command line via install.packages. Any suggestions much appreciated. Cheers, David Error: subscript out of bounds In addition: There were 50 or more warnings (use warnings() to see the first 50) > warnings() Warning messages: 1: In read.dcf(file = tmpf) ... : Line starting '<html> ...' is malformed! 2: In read.dcf(file = tmpf) ... : Line starting '<head> ...' is malformed! 3: In read.dcf(file = tmpf) ... : Line starting '<title>HostingZero.c ...' is malformed!
2010 Mar 15
1
host cross-compile patch
...f --git a/MCONFIG b/MCONFIG index 87079a5..6c5a164 100644 --- a/MCONFIG +++ b/MCONFIG @@ -39,19 +39,23 @@ UPX = upx CHMOD = chmod -CC = gcc +# Pass cross-compiler tuple to make, +# e.g. make CROSS_COMPILE=i686-nptl-linux-gnu- +CROSS_COMPILE ?= +CC = $(CROSS_COMPILE)gcc + gcc_ok = $(shell tmpf=gcc_ok.$$$$.tmp; \ if $(CC) $(GCCOPT) $(1) -c $(topdir)/dummy.c \ -o $$tmpf 2>/dev/null ; \ then echo '$(1)'; else echo '$(2)'; fi; \ rm -f $$tmpf) -LD = ld -OBJDUMP = objdump -OBJCOPY = objcopy -AR = ar -NM = nm -RANLIB = ranlib +LD = $(C...
2010 Mar 30
1
update.packages() and install.packages() does not work more because of "Error in read.dcf"
...or some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > update.packages(checkBuilt=T) --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done Error in read.dcf(file = tmpf) : Line starting 'Li ...' is malformed! > update.packages() Error in read.dcf(file = tmpf) : Line starting 'Li ...' is malformed! > install.packages("e1071") Error in read.dcf(file = tmpf) : Line starting 'Li ...' is malformed! All systems are gentoo system...
2008 Mar 10
3
internet proxy settings (win)
...C:\Program Files\R\R-2.6.2\bin\Rgui.exe" --internet2 a package update still gives me an error: > update.packages(ask='graphics') --- Please select a CRAN mirror for use in this session --- Fehler: Indizierung au?erhalb der Grenzen Zus?tzlich: Warning messages: 1: In read.dcf(file = tmpf) : Line starting '<html> ...' is malformed! 2: In read.dcf(file = tmpf) : Line starting ' <head> ...' is malformed! 3: In read.dcf(file = tmpf) : Line starting '</html> ...' is malformed! Do you know what I could try next? Thanks Thomas
2011 Aug 26
1
issue with available.packages() and download.file()
.... Lately I've been encountering an error when running a package I put together. I have my package set up to check for updates when it loads but this error occurs and stops the package from loading: Error : .onLoad failed in loadNamespace() for 'rNMR', details: call: read.dcf(file = tmpf) error: Line starting '<SCRIPT language=Jav ...' is malformed! Error: package/namespace load failed for 'rNMR' I tracked to the following line of code from my package: available.packages(contrib.url(repos = "http://rnmr.nmrfam.wisc.edu/R/", type = "win.binary&...
2015 Jan 23
0
LDA input validation
...pipe. Why should preline or dovecot-lda believe there is an error? If preline does not have no nifty option to prevent this, replace the pipe by a shell script: | /usr/local/bin/dspam-lda-wrapper.sh "$EXT@$USER" "$EXT2" ===== /usr/local/bin/dspam-lda-wrapper.sh #!/bin/bash tmpf="/tmp/wrapper.$$.log" trap 'rc=$?; rm -f $tmpf; exit $rc' EXIT if /usr/bin/dspam --client --deliver=stdout --user "$1" >$tmpf; then test -s $tmpf && /usr/bin/preline -f \ /usr/lib/dovecot/dovecot-lda -d "$1" -a "$1" -m "$2" &...
2007 Aug 10
2
available.packages (PR#9841)
...d file ':/CRAN/bin/windows/contrib/2.5/PACKAGES' in: gzfile(file, "r") Looking at the source code, I've spotted the following lines which seem to cause trouble: if (.Platform$OS.type == "windows") { if (length(grep("[A-Za-z]:", tmpf))) tmpf <- substring(tmpf, 2) } Deleting them, the function works OK.
2014 Feb 14
1
lda+ldap multiple users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 7 Feb 2014, matthias lay wrote: > I experienced that if a Mailaddress matches several users the delivery is > aborted. > > ---------------- > dovecot: auth: Error: ldap(christian.test at securepoint.de): LDAP search > returned multiple entries > dovecot: auth: ldap(christian.test at securepoint.de): unknown user >
2006 Jun 01
4
A coding question
Dear List: I have the follow code: y <- replicate(10,replicate(8,sum(rnorm(rpois(1,5))))) Now I need to apply the following condition to _every_ randomly generated Normal number in the code above: x - max(0,x-15) + max(0,x-90), where x represents the individual Normal numbers. In other words, the said condition needs to be applied before replicate(...(replicate(...(sum(...))) takes place.