Thank you! I have been thinking of using length but it would make the
test more complex. I did not know about all() but it looks like the
tool for the job. Cheers
On Thu, Sep 30, 2021 at 6:24 PM Eric Berger wrote:
>
> Alternatively you can modify the test as follows:
>
> length(unique(df_b$q)) ==
When I do full CRAN/BIOC installs I use Xvfb via something like
Xvfb :5 -screen 0 1280x1024x24 &
setenv DISPLAY :5
Best,
luke
On Thu, 30 Sep 2021, Brodie, Kent via R-help wrote:
Bill-- BINGO.You have found the answer. After some testing on one of
my environments where it was alway
You can define the environment variable R_DONT_USE_TK (to any value) to
avoid this hang caused by code in the tkrplot package. You do not have to
have an X server running if R_DONT_USE_TK is set. This will avoid
potential hangs while installing the 23 packages that depend on tkrplot.
tools::pack
I tried this a second time, but with --no-byte-compile, and it hung with a
slightly different traceback
(gdb) where
#0 0x7f95bc4c6689 in __fxstat64 () from
/usr/lib/x86_64-linux-gnu/libc.so.6
#1 0x7f95bc497050 in opendir () from
/usr/lib/x86_64-linux-gnu/libc.so.6
#2 0x7f95b935f1e0
Bill-- BINGO.You have found the answer. After some testing on one of
my environments where it was always hanging, connecting to the same server with
an X-Sever running on my workstation did indeed allow the package to be
installed.
**GOOD LORD THAT’S RIDICULOUS** But at least I
This is a microcosm of why installing "all CRAN" packages is a bad idea. Now
extend this to the other 5% of 16000+ packages that will have unclear
requirements, and when you have all those installed try to update just one of
the packages because one of your users has learned of a bug in that pac
Alternatively you can modify the test as follows:
length(unique(df_b$q)) == 1
On Thu, Sep 30, 2021 at 7:22 PM Bert Gunter wrote:
> I haven't followed this thread closely, but to your question I think
> maybe this is what you want"
>
> > z <- c("","")
> > all(z == "")
> [1] TRUE
> > z <- c("a"
I haven't followed this thread closely, but to your question I think
maybe this is what you want"
> z <- c("","")
> all(z == "")
[1] TRUE
> z <- c("a","")
> all(z == "")
[1] FALSE
If this isn't it, just ignore without reply.
Bert Gunter
"The trouble with having an open mind is that people keep
No it shouldn't work. unique returns zero or more results so == with a constant
will be a logical vector zero or more elements long, which is inappropriate for
&&. Use the any function perhaps.
On September 30, 2021 8:51:02 AM PDT, Luigi Marongiu
wrote:
>Yes, but the && should work within `uni
I just tried installing forensim on R-devel/Ubuntu 20.04/WSL-2.0 without an
X server (hence DISPLAY was not set). Loading tktcl gives a warning that
Tk is not available because DISPLAY is not set. The installation hung
after the byte-compile message:
installing to
/home/bill/R-devel/R-build/site-
(As I said, I'll try anything!)
OK, so I went ahead to get the scl devtoolset, and rebuilt R 4.1.1 with the
same exact gcc you used.
But- same result for me. Hung at the byte-compile step when installing that
one package, no error, no messages, no logs.
> -Original Message-
> Fro
Yes, but the && should work within `unique(df_b$q) == ""` because the
test should be: (IF THE DATAFRAME HAS ZERO ROW) OR (ALL THE ELEMENTS
OF $q ARE EMPTY) THEN (PRINT empty).
Can I collapse the TRUE FALSE of `unique(df_b$q) == ""`into a single FALSE?
On Thu, Sep 30, 2021 at 4:28 PM Sarah Goslee
Hi,
The OR operator you used is working as expected: || starts from the
left and evaluates only enough of the options to determine the
results. The first test is TRUE, so the result is TRUE. It sounds
like you might actually want an AND operator, & or &&, which will only
return TRUE if all elemen
Hello,
I have two data frames, each with three rows:
```
df_a <- data.frame(a = letters[1:3], b = LETTERS[1:3], q = c("", "", ""),
stringsAsFactors = FALSE)
df_b <- data.frame(a = letters[4:6], b = LETTERS[4:6], q = c("", "", "1.5"),
stringsAsFactors = FALSE)
```
I need to test whether the datafram
14 matches
Mail list logo