Re: [R] opening nimroad tar gz files in R

2022-09-15 Thread Eric Berger
Is there a way to download a file from that site without registering for
the site?
If you have a unix/linux shell, what does the 'file' command output?

$ file foo.gz



On Thu, Sep 15, 2022 at 2:11 PM Nick Wray  wrote:

> Hello
>
> I am trying to download data sets from the 1 km Resolution UK Composite
> Rainfall Data from the Met Office Nimrod System
>
> Eg
>
> CEDA Archive Web Browser
> 
> /badc/ukmo_nimrod/data/composite/uk-1km/2004
>
> I can download an individual file (there are lots for each year) as a
> .gz.tar and then it appears as a TAR file in the directory I am using.
>
> I have then used the instruction untar() (targeted on the correct
> directory) and what this produces is about a dozen these files which are
> labelled as .gz files.  They appear in the same folder as the original TAR
> folder but as R files (ie although they have .gz in the name they have the
> R icon next to them as do any R progs which I have).  I can’t open them
> though as R progs (which I don’t really think they can be) and trying to
> just takes me back to the R studio interface.
>
> I’ve tried  -- read.table (gzfile
> ("metoffice-c-band-rain-radar_uk_200404062250_1km-composite.dat.gz")) but
> that just gives a load of error messages and I haven’t found any other way
> of opening them as .gz files.
>
> I’m rather baffled – can anyone make any suggestions?  Thanks Nick Wray
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] opening nimroad tar gz files in R

2022-09-15 Thread Nick Wray
Hello

I am trying to download data sets from the 1 km Resolution UK Composite
Rainfall Data from the Met Office Nimrod System

Eg

CEDA Archive Web Browser

/badc/ukmo_nimrod/data/composite/uk-1km/2004

I can download an individual file (there are lots for each year) as a
.gz.tar and then it appears as a TAR file in the directory I am using.

I have then used the instruction untar() (targeted on the correct
directory) and what this produces is about a dozen these files which are
labelled as .gz files.  They appear in the same folder as the original TAR
folder but as R files (ie although they have .gz in the name they have the
R icon next to them as do any R progs which I have).  I can’t open them
though as R progs (which I don’t really think they can be) and trying to
just takes me back to the R studio interface.

I’ve tried  -- read.table (gzfile
("metoffice-c-band-rain-radar_uk_200404062250_1km-composite.dat.gz")) but
that just gives a load of error messages and I haven’t found any other way
of opening them as .gz files.

I’m rather baffled – can anyone make any suggestions?  Thanks Nick Wray

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Overlapping barplots and lines

2022-09-15 Thread Jim Lemon
Hi Stefano,
The bar x centers are returned by the barplot function. You can also
use the barp function (plotrix package) that places the bars at unit
intervals by default.

Jim

On Thu, Sep 15, 2022 at 3:47 PM Stefano Sofia
 wrote:
>
> Dear R-list users,
>
> I have a silly problem with plot that I am not able to solve. I tried to find 
> a solution through the web, with no success.
>
>
> I need to overlap a barplot with points:
>
>
> barplot(c(55, 80, 120, 90, 105), lwd=1, lend=1, main="", ylab="cm", width=1, 
> ylim=c(0, 120), axes=F)
>
> lines(c(70, 50, 100, 60, 70), type="p", pch=21, bg="red")
>
> axis(1, at=c(1, 2, 3, 4, 5), labels=c("Dec", "Jan", "Feb", "Mar", "Apr"), 
> pos=-1, cex.axis=0.8)
> axis(2, at=seq(0, 120, 10), pos=0)
>
>
> Points and x-axis are not centered with barplots. How can I fix it?
>
>
> Thank you for your help
>
> Stefano
>
>
>  (oo)
> --oOO--( )--OOo--
> Stefano Sofia PhD
> Civil Protection - Marche Region - Italy
> Meteo Section
> Snow Section
> Via del Colle Ameno 5
> 60126 Torrette di Ancona, Ancona (AN)
> Uff: +39 071 806 7743
> E-mail: stefano.so...@regione.marche.it
> ---Oo-oO
>
> 
>
> AVVISO IMPORTANTE: Questo messaggio di posta elettronica può contenere 
> informazioni confidenziali, pertanto è destinato solo a persone autorizzate 
> alla ricezione. I messaggi di posta elettronica per i client di Regione 
> Marche possono contenere informazioni confidenziali e con privilegi legali. 
> Se non si è il destinatario specificato, non leggere, copiare, inoltrare o 
> archiviare questo messaggio. Se si è ricevuto questo messaggio per errore, 
> inoltrarlo al mittente ed eliminarlo completamente dal sistema del proprio 
> computer. Ai sensi dell'art. 6 della DGR n. 1394/2008 si segnala che, in caso 
> di necessità ed urgenza, la risposta al presente messaggio di posta 
> elettronica può essere visionata da persone estranee al destinatario.
> IMPORTANT NOTICE: This e-mail message is intended to be received only by 
> persons entitled to receive the confidential information it may contain. 
> E-mail messages to clients of Regione Marche may contain information that is 
> confidential and legally privileged. Please do not read, copy, forward, or 
> store this message unless you are an intended recipient of it. If you have 
> received this message in error, please forward it to the sender and delete it 
> completely from your computer system.
>
> --
> Questo messaggio  stato analizzato da Libraesva ESG ed  risultato non infetto.
> This message was scanned by Libraesva ESG and is believed to be clean.
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with installing packages in R

2022-09-15 Thread Eric Berger
Can you bring up R in a shell? Do you get the same message?
(Also, set your email to send plain text. HTML versions are deleted.)



On Thu, Sep 15, 2022 at 11:27 AM Farah Al Saifi  wrote:
>
> Dear Sir/Madam
>
> After the update of the new version of R 4.2.1, an error message ( Error in 
> nchar(homeDir): invalid multibyte string, element 1)  appears every time i 
> open RStudio. Also the following warning message appears in the console: In 
> normalizePath (path.expand(path),  winslash, mustwork): 
> path[1]="C:/Users/41784/oneDrive - Universität zürich UZH/Dokumente": the 
> system cannot find the given path.
>
> I would be glad, if you can tell me the solution for this problem. Thank you 
> for your consideration.
>
> Best,
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Install Rmpi on Linux on a HPC

2022-09-15 Thread Ivan Krylov
On Thu, 15 Sep 2022 14:39:42 +0900
James Li  wrote:

>  *** caught segfault ***
> address 0x1, cause 'memory not mapped'
> 
> Traceback:
>  1: fun(libname, pkgname)
>  2: doTryCatch(return(expr), name, parentenv, handler)
>  3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
>  4: tryCatchList(expr, classes, parentenv, handlers)
>  5: tryCatch(fun(libname, pkgname), error = identity)
>  6: runHook(".onLoad", env, package.lib, package)
>  7: loadNamespace(package, lib.loc)
>  8: doTryCatch(return(expr), name, parentenv, handler)
>  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
> 10: tryCatchList(expr, classes, parentenv, handlers)
> 11: tryCatch({attr(package, "LibPath") <- which.lib.locns <-
> loadNamespace(package, lib.loc)env <- attachNamespace(ns, pos =
> pos, deps, exclude, include.only)}, error = function(e) {P <- if
> (!is.null(cc <- conditionCall(e))) paste(" in",
> deparse(cc)[1L]) else ""msg <- gettextf("package or namespace
> load failed for %s%s:\n %s", sQuote(package), P,
> conditionMessage(e))if (logical.return)
> message(paste("Error:", msg), domain = NA)else stop(msg, call. =
> FALSE, domain = NA)})
> 12: library(Rmpi)

This is a bit useful. The crash is happening in Rmpi:::.onLoad() during
the first line of the script, library(Rmpi), and the reason is that
something takes the number 1 and tries to dereference it as a pointer.

Rmpi's .onLoad does a number of different things [*], and the crash is
happening inside some C code anyway, so we need the debugger.

> Reading symbols from
> /home/exp/R/4.0.5-gcc10.2.0-openmpi-debug/lib64/R/bin/exec/R...done.
> (gdb) quit

In order to get useful information from GDB, you need to type "run" in
the GDB prompt (without the " quotes) and reproduce the crash (for
example, by running library(Rmpi)). Once the R process crashes, you
will return back to the GDB prompt, where you'll need to run "bt full"
(again, without the quotes). After that you can quit.

-- 
Best regards,
Ivan

[*] https://github.com/cran/Rmpi/blob/master/R/zzz.R

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with installing packages in R

2022-09-15 Thread Farah Al Saifi
Dear Sir/Madam

After the update of the new version of R 4.2.1, an error message ( Error in 
nchar(homeDir): invalid multibyte string, element 1)  appears every time i open 
RStudio. Also the following warning message appears in the console: In 
normalizePath (path.expand(path),  winslash, mustwork): 
path[1]="C:/Users/41784/oneDrive - Universit�t z�rich UZH/Dokumente": the 
system cannot find the given path.

I would be glad, if you can tell me the solution for this problem. Thank you 
for your consideration.

Best,


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.