Displaying 20 results from an estimated 7000 matches similar to: "Note: no visible definition"
2016 Apr 09
2
Note: no visible definition
On 4/9/16 10:54 AM, Dirk Eddelbuettel wrote:
> On 9 April 2016 at 10:28, Mick Jordan wrote:
> | Can someone explain a message of this form from an rscript execution:
> |
> | Note: no visible global function definition for 'foo'
> |
> |
> | This happens right at the start of execution. 'foo' is only executed in
> | a branch of an 'if' that is not
2016 Apr 09
0
Note: no visible definition
On 09/04/2016 2:55 PM, Mick Jordan wrote:
> On 4/9/16 10:54 AM, Dirk Eddelbuettel wrote:
>> On 9 April 2016 at 10:28, Mick Jordan wrote:
>> | Can someone explain a message of this form from an rscript execution:
>> |
>> | Note: no visible global function definition for 'foo'
>> |
>> |
>> | This happens right at the start of execution.
2016 Mar 14
2
Help with libiconv problem
A couple of my colleagues are having problems building R-3.2.4 on Mac OS
X El Capitan somehow related to libiconv. I personally don't have any
problems on either of my Macs. I'm hoping thie make log might trigger
something in the readers of this list:
gcc -dynamiclib -Wl,-headerpad_max_install_names -undefined
dynamic_lookup -single_module -multiply_defined suppress
-L../../../../lib
2016 May 03
2
vignette/knitr help
On 5/3/16 11:29 AM, Thierry Onkelinx wrote:
> Dear Mick,
>
> Note that both knitr and rmarkdown are listed under Suggests: both are
> required to compile the vignette. Installing rmarkdown should solve
> the problem. If not, please provide more information. OS, R version,
> digest version, ...
>
>
This is occurring in the context of an automated testing environment
that
2016 May 03
2
vignette/knitr help
I need some help understanding a problem running the tests on the
'digest' package. Initially, I got the message that the 'knitr' package
was needed to run vignettes:
Running vignettes for package ?digest?
Error in loadVignetteBuilder(vigns$pkgdir) :
vignette builder 'knitr' not found
So I installed the knitr package and all its dependents (?mime?,
?stringi?,
2015 Apr 29
2
--interactive and -f/-e
I was surprised by this:
R --interactive -e 'interactive()'
bash-3.2$ R -q -e 'interactive()' --interactive
> interactive()
[1] FALSE
>
as the command options document says that --interactive should force
interactive=TRUE:
" When *R* is run in a terminal (via |Rterm.exe| on Windows), it assumes
that it is interactive if ?stdin? is connected to a (pseudo-)terminal
2004 Nov 20
2
subset on data frame
I have a data frame. And I'd like to subset according to rownames.
subset(mydataframe, rownames(mydataframe) == myrow, select = mycols)
it turned out that "myrow" cannot be a vector. But I have multiple rows to
pick. Is there a way to get around this problem??
Thank you for your help!!
Lei Jiang
Department of Chemsitry
University of Washington
Box 351700
Seattle, WA 98195
2016 Mar 15
4
Regression in strptime
>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>> on Sat, 12 Mar 2016 19:11:40 +0100 writes:
> OK, .Internal is not necessary to reproduce oddity in this area. I also see things like (notice 1980)
>> strptime(paste0(sample(1900:1999,80,replace=TRUE),"/01/01"), "%Y/%m/%d", tz="CET")
...............
>
2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Here's a dummy example that I think illustrates the problem:
toto <- function() {
if (runif(1) < 0.5)
function(a) a
else
function(a,b) a+b
}
> fcn <- toto()
> fcn(1,2)
[1] 3
> fcn <- toto()
> fcn(1,2)
[1] 3
> fcn <- toto()
> fcn(1,2)
Error in fcn(1, 2) : unused argument (2)
How can you use the returned function, if you get different arguments?
2007 Jun 11
1
package check note: no visible global function definition (in functions using Tcl/Tk)
Hello,
when testing packages under R version 2.6.0 Under development
(unstable), in order to discover future compatibility issues, I recently
get numerous "possible problem notes" for different (own and other
contributed) packages containing Tcl/Tk code, e.g.:
* checking R code for possible problems ... NOTE
sEdit : editVec : build: no visible global function
definition
2014 Dec 17
2
vapply definition question
vapply <- function(X, FUN, FUN.VALUE, ..., USE.NAMES = TRUE)
{
FUN <- match.fun(FUN)
if(!is.vector(X) || is.object(X)) X <- as.list(X)
.Internal(vapply(X, FUN, FUN.VALUE, USE.NAMES))
}
This is an implementor question. Basically, what happened to the '...'
args in the call to the .Internal? cf lapply:, where the ... is passed.
lapply <- function (X, FUN, ...)
2008 Jan 21
2
experiments with slot functions and possible problems NOTE
Hello,
first of all, thanks to LT for \pkg{codeutils}. I agree that it is
indeed very useful to identify errors and also to encourage re-thinking
past solutions. My problem:
I want to compare different sets of related sub-functions which should
be used alternatively by the same top-level function. Sets of related
functions should be bound together (as lists) and the workspace should
be as clean
2011 Apr 07
3
Correlation Matrix
Listers,
I have a question regarding correlation matrices. It is fairly straight
forward to build a correlation matrix of an entire data frame. I simply use
the command cor(MyDataFrame). However, what I would like to do is construct
a smaller correlation matrix using just three of the variable out of my data
set.
When I run this:
cor(MyDataFrame$variable1,
2009 Dec 08
1
problem with split eating giga-bytes of memory
I'm having trouble using split on a very large data-set with ~1400 levels of
the factor to be split. Unfortunately, I can't reproduce it with the simple
self-contained example below. As you can see, splitting the artificial
dataframe of size ~13MB results in a split dataframe of ~ 144MB, with an
increase memory allocation of ~10 fold for the split object. If split scales
linearly, then my
2007 Oct 24
3
Partial aggregate on sorted data
Hi All,
I'm looking for ways to compute aggregate statistics (with the aggregate
function) but with an option for sorting and selecting a subset of the data
frame. For example, I have would like to turn this :
aggregate(myDataframe$TargetValue,list(SomeFactor =
myDataframe$SomeFactor),mean)
into something like
aggregate(myDataframe$TargetValue,list(SomeFactor =
2010 Mar 11
2
Can't convert list to matrix properly
Hi guys, here is a list of names that I have:
MyList:
> myList<-list("A", "B","C","D")
> myList
[[1]]
[1] "A"
[[2]]
[1] "B"
[[3]]
[1] "C"
[[4]]
[1] "D"
I want to turn this list into a matrix of 1 row and 4 columns with those
four components (A, B, C, D) so here is what I do:
myDataFrame <-
2010 Apr 26
1
help with code
I am new to R and have tried for a good while to figure out how to code this
in R. The dataset below:
FTIStandKey
State
County
FTITract
CoverType
Ver_CT
V_Origin
V_SpGrp
NAH6005-001
Texas
Jasper
NAH6005
PPLB-2000-U
PPLB-2000-U
P
P
NAH6005-002
Texas
Jasper
NAH6005
NHHX-1950-O
NHHX-1950-I
N
H
NAH6253-001
Texas
Tyler
NAH6253
PPLB-2001-U
PPLB-2001-U
P
P
2012 Jul 19
2
problem with using apply for dataframe
Dear people,
I am including an example of a dataframe:
mydataframe<-data.frame(X=c(1:4),total_bill=c(16.99,10.34,21.01,23.68),tip=c(1.01,1.66,3.50,3.31),sex=c("Male","Male","Male","Female"))
When I use the sapply function getting the information about the factors
works:
sapply(mydataframe,function(x)is.factor(x))
X total_bill tip
2010 Apr 29
2
understanding behavior of "merge"
I'm trying to bootstrap resample from a repeated measures dataset. I sample
a vector of "ID"'s from my dataframe with replacement.
Then I merge this back with my dataframe.
I'm re-sampling subjects in the dataset rather than rows of the data.
I thought I could use the left/right join features of the merge to select
the records I want from the dataframe (mydataframe), like
2005 Apr 04
2
mysql retrive question
hello R-Users,
I have this simple but not for me question:
I do:
> res<-dbSendQuery(con, "SELECT * FROM tabellaProva")
> myDataFrame<-fetch(res)
> myDataMatrix<-as.matrix(myDataFrame[,-1])
> namerows(myDataMatrix)<-as.character(myDataFrame[,1])
and I have:
io tu
io "0" "1"
tu "1" "0"
my problem is that the