Displaying 20 results from an estimated 10000 matches similar to: "Invisible doesn't exit function?"
2006 Aug 11
2
invisible() - does not return immediately as return() does
Hi,
I stumbled across the following (unexpected for me) behavior after
replacing a return() statement in the middle of a function by invisible().
Example:
foo <- function() { cat("before\n"); return(); cat("after\n")}
>foo()
before
NULL
foo2 <- function() { cat("before\n"); invisible(TRUE); cat("after\n")}
>foo2()
before
after
I expected
2006 Oct 26
2
how to determine if a function's result is invisible
Suppose we have a function such as the following
F <- function(f, x) f(x)+1
which runs function f and then transforms it. I would like the
corresponding function which works the same except that
unlike F returns an invisible result if and only if f does.
Is there some way of determining whether f returns
an invisible result or not?
Thus we want this:
f <- function(x) x
g <-
2000 Jun 30
1
dim(a <- ...) sets invisible flag erronously (PR#587)
{Nothing really harmful; R 1.1.0}
dim(.) sets (or doesn't clear) the ``invisible flag'' for printing in
certain circumstances:
> dim(a <- cbind(1))
>
does *not* print as it should :
> dim(a)
[1] 1 1
---
Question to the real "hackers" :
How can I check this using R code alone (not using files),
i.e. (how) can I ask an R expression if its
2023 Mar 24
1
make file.rename return invisible
Dear R Core devs,
I wonder if it makes sense to make function file.rename return invisible? This is not a big issue, but when running in RMarkdown or knitr, this function will print results. I have to manually call invisible to hide the output from showing in the final document:
```r
invisible(file.rename(...))
```
Otherwise knitr will print:
```
file.rename(...)
#> TRUE
```
If this
2017 Jun 09
2
After gluster clean up sub directories becomes invisible
Hi Team,
After performing the gluster clean up and again doing gluster configuration
the sub directories become invisible. Even after they are present the
directories are invisible. If I create a new directory by the same name it
will say the directory already exists.
Thanks & Regards,
Sangeeta Ramapure
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
1997 Oct 30
2
R-alpha: buglet in return(invisible()) [R 0.50 and 0.60]
Evaluate the following example to get the behavior :
--- anybody: patch ? ---
tst.i <- function(x)
{
if(missing(x))
return(invisible())
else if(!is.numeric(x)) stop("x must be numeric")
## else
invisible((x+3)^2)
}
tst.i()#-- should NOT print anything !!
print(mode(tst.i()))#--gives "NULL" both in S-plus 3.4 and R 0.60
tst.i(1)# nothing (ok in R and
2017 Jun 12
0
After gluster clean up sub directories becomes invisible
Kindly somebody help me with this issue.
Thanks & Regards,
Sangeeta Ramapure
*From:* Sangeeta Ramapure [mailto:sangeeta.ramapure at globallogic.com]
*Sent:* June 09, 2017 4:41 PM
*To:* 'gluster-users at gluster.org'
*Cc:* 'devarajan at ericsson.com'
*Subject:* After gluster clean up sub directories becomes invisible
Hi Team,
After performing the gluster clean up
2017 Jun 12
3
After gluster clean up sub directories becomes invisible
can you please describe a bit more about the steps taken to clean up and
re-configure gluster?
Regards,
Vijay
On Mon, Jun 12, 2017 at 12:08 PM, Sangeeta Ramapure <
sangeeta.ramapure at globallogic.com> wrote:
> Kindly somebody help me with this issue.
>
>
>
> Thanks & Regards,
>
> Sangeeta Ramapure
>
>
>
> *From:* Sangeeta Ramapure
2011 Aug 29
3
replacing elements of a zoo object
Why doesn't this work?
x = zoo(1:5, as.Date('2001-01-01')+1:5)
x[as.Date('2001-01-05')]
x[as.Date('2001-01-05')] = 0
x
I think this is especially bad because it doesn't cause an error. It lets
you do something to x, but then you can't see x again to see what it did.
[[alternative HTML version deleted]]
2004 Apr 14
1
Invisible samba server
Hi,
My samba server "linux-1" (samba-3.0.2-7.FC1) has suddenly become
invisible from all windows client. The samba server is a member of the
"RASKNO" workgroup and was visible when browsing the workgroup from
windows clients a few weeks ago.
The weird thing is that it is now invisible. The only changes has been
regular updates of FC1.
The symptoms is that I can search for
1997 Nov 06
1
R-alpha: "invisible" (yet again): a more problematic bug[let]
I think this is a more problematic buglet
in (implicit/explicit) ``invisible behavior'').
Try this (all versions of R from 0.49 to 0.60):
test0 <- function() c(1,2)
test <- function(two = FALSE) c(1, if(two) 2)
testR <- function(two = FALSE) return(c(1, if(two) 2))
test0()# 1 2 as it should
test() #
2011 Dec 07
1
RSPython installation
Does anyone know if Is there a way to manually install RSPython?
I get this error when I try to run the script from my DOS prompt.
V:\>R CMD INSTALL -c C:/Users/gene.leynes/Downloads/RSPython_0.7-1.tar.gz
* installing to library 'C:/Users/gene.leynes/Documents/R/win-library/2.13'
* installing *source* package 'RSPython' ...
**********************************************
2011 Dec 06
2
read.table performance
** Disclaimer: I'm looking for general suggestions **
I'm sorry, but can't send out the file I'm using, so there is no
reproducible example.
I'm using read.table and it's taking over 30 seconds to read a tiny file.
The strange thing is that it takes roughly the same amount of time if the
file is 100 times larger.
After re-reviewing the data Import / Export manual I think
2010 Jul 09
3
apply is slower than for loop?
I thought the "apply" functions are faster than for loops, but my most
recent test shows that apply actually takes a significantly longer than a
for loop. Am I missing something?
It doesn't matter much if I do column wise calculations rather than row wise
## Example of how apply is SLOWER than for loop:
#rm(list=ls())
## DEFINE VARIABLES
mu=0.05 ; sigma=0.20 ; dt=.25 ; T=50 ;
2018 Apr 03
4
Invisible files and directories
Hello!
We are running distributed volume that contains 7 bricks.
Volume is mounted using native fuse client.
After an unexpected system reboot, some files are disappeared from fuse
mount point but still available on the bricks.
The way it disappeared confusing me a lot. I can't see certain directories
using ls -la but, at the same time, can cd into the missed directory. I
can rename the
2007 Jan 26
1
CGIwithR and visible output of 'invisible(capture.output(library(...)))'
Dear alltogether,
I want to use CGIwithR in conjunction with R2HTML.
A small example called 'test.R':
#####
#! /usr/bin/R
invisible(capture.output(library(R2HTML)))
HTML(summary(as.numeric(scanText(formData$numbers))), file=stdout())
#####
The script gets its input via 'CGIwithR.cgi' and contains the variable
"numbers."
The 'HTML' output (-> summary() in
2011 Jul 07
4
Return invisible list
Hi, I'm new to R. I'm trying to do some extreme value theory analysis,
looking at the Mean Excess Plot of a series. These are the commands I type
to get the plot:
x=read.table("data.txt",header=T)
goa=(x[,3])
meplot(goa)
I can see the plot, but I would like to see the values of the x and y axis.
According to this page
2018 Apr 04
0
Invisible files and directories
http://lists.gluster.org/pipermail/gluster-users/2018-April/033811.html
On Tue, Apr 3, 2018 at 6:43 PM, Serg Gulko <s.gulko at gmail.com> wrote:
> Hello!
>
> We are running distributed volume that contains 7 bricks.
> Volume is mounted using native fuse client.
>
> After an unexpected system reboot, some files are disappeared from fuse
> mount point but still available
2018 Apr 04
0
Invisible files and directories
On Wed, Apr 4, 2018 at 4:13 AM, Serg Gulko <s.gulko at gmail.com> wrote:
> Hello!
>
> We are running distributed volume that contains 7 bricks.
> Volume is mounted using native fuse client.
>
> After an unexpected system reboot, some files are disappeared from fuse
> mount point but still available on the bricks.
>
> The way it disappeared confusing me a lot. I
2018 Apr 04
2
Invisible files and directories
Hello!
Unfortunately no.
Directory still not listed using ls -la, but I can cd into.
I can rename it and it becomes available when I rename it back to the
original name it's disappeared again.
On Wed, Apr 4, 2018 at 12:56 AM, Raghavendra Gowdappa <rgowdapp at redhat.com>
wrote:
>
>
> On Wed, Apr 4, 2018 at 4:13 AM, Serg Gulko <s.gulko at gmail.com> wrote:
>
>>