Displaying 20 results from an estimated 10000 matches similar to: "namespace? environment? how to manage functions?"
2009 Oct 23
2
connecting to Oracle
Hi, useR-
I am connecting to Oracle database using RODBC, but keep getting this error
message:
> library(RODBC)
> channel <- odbcConnect(dsn="abc", uid="abc", pwd="abc", case='oracle')
Warning in odbcDriverConnect(st, ...) :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver
Manager] Data source name not found and no default
2008 Dec 14
2
Help required to install package from a website
Hi,
I am new to R and I'm looking to perform some method comparison
analysis and would be grateful for some help regarding package
installation.
There is a package 'MethComp' that I want to use
(http://staff.pubhealth.ku.dk/~bxc/MethComp/Courses/Sthm.2007/.)
Unfortunately I am unable to install it. I have tried numerous
approaches but to no avail. this is the first time I have tried to
2007 Nov 25
1
Package Building under Windows with MikTeX 2.6
Dear WizaRds,
I wrote a small function in R and would like to create a package. The
necessary documentation is done, Rtools etc. are installed and I am
still unable to complete the process under Windows. I did extensive
research in the archives and read the Murdoch-Sutherland website on the
Rtools and MikTeX hints. I realize that I understand only half or less
of what is said there
2008 Dec 24
2
overwrite title
Hi, useRs-
I have a plot with a title generated automatically.
I need to overwrite the title, but I can't figure out how to do that.
I've tried the following:
title( "abc", bg='white')
But, that does not set the title background as white.
Now I am stuck and need your help. Thanks-
--
View this message in context:
2014 Feb 14
1
lda+ldap multiple users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 14 Feb 2014, matthias lay wrote:
> On 02/14/2014 08:27 AM, Steffen Kaiser wrote:
>> On Fri, 7 Feb 2014, matthias lay wrote:
>>
>>> I experienced that if a Mailaddress matches several users the delivery is
>>> aborted.
>>>
>>> ----------------
>>> dovecot: auth: Error:
2008 Jul 03
1
Installation of packages via GUI, Mac OS X
All,
I'm running R v2.7.1 on Mac OS X. When I go to the R package installer GUI,
I am not prompted to select a repository. The usual screen is there but
the columns for package, installed version, and repository version are all
populated via blank entries.
If I select "Get List" the error below occurs. The same thing occurs if I
go form the command line via install.packages.
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
2019 Dec 03
2
Account locked and delayed user data propagation...
Mandi! Rowland penny via samba
In chel di` si favelave...
I came back on this, because still some glitches happen.
Yesterday I'm locked out.
'pdbedit -vL gaio' say me that account IS locked. But:
> yes, Provided you use the right attribute to search on ;-)
> Something like this will give you if/when the account was locked out:
> ldbsearch -H
2010 Mar 15
1
host cross-compile patch
I tend to use the same tool-chain across various hosts so I made this
very simple patch that allows you to pass the cross-compiler name to
make ( e.g. make CROSS_COMPILE=i686-nptl-linux-gnu-).
I'm not sure if patches should be attached or just pasted inline so I
did both this time. BTW, it's relative to syslinux 4 but the same
changes work with syslinux 3 although the patch won't
2010 Mar 30
1
update.packages() and install.packages() does not work more because of "Error in read.dcf"
Hi,
on all my systems update.packages() and install.packages() fails now. I
get the following message:
root at orca:/root(28)# R
R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or
2008 Mar 10
3
internet proxy settings (win)
I cannot access internet through R.
My IT-guys told me that I should set the proxy and the port and then
everything will be fine. Where can I set them?
I use R 2.6.2 under Windows 2000 and these settings are those of the
Internet Explorer (no password).
I read http://cran.at.r-project.org/bin/windows/base/rw-FAQ.html#The-Internet-download-functions-fail_002e
but staring R by
"C:\Program
2011 Aug 26
1
issue with available.packages() and download.file()
Dear R-Users,
I think I have encountered a potential bug (or at least unwanted behavior),
but I'm not sure so I wanted to post here first. 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
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 component
of
2007 Aug 10
2
available.packages (PR#9841)
Full_Name: Zivan Karaman
Version: 2.5.1
OS: Windows XP SP2
Submission from: (NULL) (195.6.68.214)
I think that I have encountered a bug in the function "available.packages" when
using a local repository (file://
) on Windows.
Version information:
platform i386-pc-mingw32
arch i386
os mingw32
system
2007 Apr 26
3
A coding question involving variable assignments in ifelse()
Dear List,
Below is a simple, standard loss model that takes into account the
terms of an insurance policy:
deductible <- 15
coverage.limit <- 75
insurance.threshold <- deductible + coverage.limit
tmpf <- function() {
loss <- rlnorm(rpois(1, 3), 2, 5)
sum(ifelse(loss > insurance.threshold, loss - coverage.limit,
pmin(loss, deductible)))
}
net <- replicate(1000000, tmpf())
2019 Dec 03
4
Account locked and delayed user data propagation...
Mandi! Rowland penny via samba
In chel di` si favelave...
> 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
2016 Mar 02
2
install.packages() fails with drat repository on networkdrive
Dear all,
install.packages("lme4") fails with error
Error in read.dcf(file = tmpf) : cannot open the connection
In addition: Warning message:
In read.dcf(file = tmpf) :
cannot open compressed file
'//servername/repository_path/bin/windows/contrib/3.2/PACKAGES',
probable reason 'No such file or directory'
the repositories set in .Rprofile are
2009 Oct 10
1
Errors in installing package "rJava" on Ubuntu (PR#13992)
*Hello,
I have had this serious problem while trying to install package rJava. It is
a requirement by the package JGR and it cannot be downloaded due to the
error indicated below.
I have googled and looked at the FAQ but no solution yet.
Please advise.
Kind regards,
Lazarus
> install.packages("rJava")*
Warning in install.packages("rJava") :
argument 'lib' is
2007 May 22
1
Segfault?
Hello everyone,
I get (reproducible) segfaults when I try to update my packages, and
was wondering whether anyone knows why this might be happening.
I am trying to update my packages:
1. I start R via sudo in a terminal
2. I type update.packages() - a Tcl/Tk list pops up, I select a mirror
3. R segfaults.
Maybe I need to update to a newer version of R or something?
Slightly OT, but does anyone
2000 Mar 06
1
nlm and optional arguments
It would be really nice if nlm took a set of "..." optional arguments
that were passed through to the objective function. This level of hacking
is probably slightly beyond me: is there a reason it would be technically
difficult/inefficient? (I have a vague memory that it used to work this
way either in S-PLUS or in some previous version of R, but I could easily
be wrong.)
Here's