[Rd] read.csv

2024-04-16 Thread jing hua zhao
Dear R-developers, I came to a somewhat unexpected behaviour of read.csv() which is trivial but worthwhile to note -- my data involves a protein named "1433E" but to save space I drop the quote so it becomes, Gene,SNP,prot,log10p YWHAE,13:62129097_C_T,1433E,7.35

Re: [R-pkg-devel] CRAN Vignette pdfs garbled in Firefox pdf viewer

2023-02-18 Thread jing hua zhao
Hi Mike, Shota and all, Upon update to Firefox 110 (ahead of the nightly 112) this morning the bug is also fixed. BW, Jing Hua From: R-package-devel on behalf of jing hua zhao Sent: 10 February 2023 22:06 To: Mike Blazanin ; Shota Ochi Cc: r-package-devel@r

Re: [R-pkg-devel] CRAN Vignette pdfs garbled in Firefox pdf viewer

2023-02-10 Thread jing hua zhao
The problem has been around for a while for me and thank you for raising it -- esp. with a fix! Jing Hua From: Mike Blazanin Sent: 10 February 2023 16:29 To: Shota Ochi Cc: jing hua zhao ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] CRAN Vignette

Re: [R-pkg-devel] CRAN Vignette pdfs garbled in Firefox pdf viewer

2023-02-10 Thread jing hua zhao
This is apparently due to compression as needed fort package building, e.g., R CMD build --compact-vignettes=both --md5 --resave-data --log gap so mine has the same problem: https://cran.r-project.org/web/packages/gap/vignettes/jss.pdf From: R-package-devel on

Re: [Rd] Compiling error with glmnet and nloptr

2022-03-10 Thread jing hua zhao
: jing hua zhao Sent: 10 March 2022 10:45 To: R-devel Subject: Re: Compiling error with glmnet and nloptr Just a note that I used R 4.1.2 and with R 4.1.3 I had the same issues nevertheless I was able to go through with (not entirely sure preferable) nloptr once abs() is changed into fabs

[Rd] Compiling error with glmnet and nloptr

2022-03-10 Thread jing hua zhao
Dear All, I haven't been able to compile the latest glmnet and nloptr from CRAN wth the following error messages, glmnet: elnet_exp.cpp:141:59: required from here glmnetpp/include/glmnetpp_bits/elnet_point/gaussian_base.hpp:90:39: error: 'self' was not declared in this scope

[Rd] Help on mapping memory

2020-11-10 Thread jing hua zhao
a driver program to pan.f and debug without R but before doing that any idea/insight would be greatly appreciated. Thank you so much, Jing Hua Zhao [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread jing hua zhao
) prob2 = np.log(2.5e-50) prob12 = np.logaddexp(prob1, prob2) prob12 np.exp(prob12) As expected they are in good agreement with R. Best regards, Jing Hua From: Martin Maechler Sent: 24 June 2019 09:29 To: jing hua zhao Cc: William Dunlap; Martin Maechler; r

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-24 Thread jing hua zhao
> https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.misc.logsumexp.html >> >> I don't know where this has been implemented in the R ecosystem, but >> this sort of computation is the basis of the "Brobdingnag" package for >> operating on very l

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread jing hua zhao
: peter dalgaard Sent: 21 June 2019 16:24 To: jing hua zhao Cc: Rui Barradas; r-devel@r-project.org Subject: Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z You may want to look into using the log option to qnorm e.g., in round figures: > log(1e-300) [1] -690.7755 > qnorm(-691, log=TRU

Re: [Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread jing hua zhao
Dear Rui, Thanks for your quick reply -- this allows me to see the bottom of this. I was hoping we could have a handle of those p in genmoics such as 1e-300 or smaller. Best wishes, Jing Hua From: Rui Barradas Sent: 21 June 2019 15:03 To: jing hua zhao; r

[Rd] Calculation of e^{z^2/2} for a normal deviate z

2019-06-21 Thread jing hua zhao
Dear R-developers, I am keen to calculate exp(z*z/2) with z=qnorm(p/2) and p is very small. I wonder if anyone has experience with this? Thanks very much in advance, Jing Hua [[alternative HTML version deleted]] __ R-devel@r-project.org

Re: [Rd] use of buffers in sprintf and snprintf

2019-05-30 Thread jing hua zhao
ith https://www.stats.ox.ac.uk/pub/bdr/gcc9/README.txt and those specification might as well used in --configure-args above. Besst regards, Jing Hua From: R-devel on behalf of jing hua zhao Sent: 29 May 2019 15:49 To: r-devel@r-project.org Subject: [Rd] use of buffers

Re: [Rd] [R] consider running tools::compactPDF(gs_quality = "ebook")

2018-07-08 Thread jing hua zhao
A bit clarification -- tools::compactPDF() worked on the PDF at the current directory for me -- not sure about building PDF on the fly. From: R-devel on behalf of jing hua zhao Sent: 08 July 2018 16:00 To: Søren Højsgaard; r-devel@r-project.org Subject: Re

Re: [Rd] [R] consider running tools::compactPDF(gs_quality = "ebook")

2018-07-08 Thread jing hua zhao
Idid this inside R; not ideal but worked. From: R-devel on behalf of Søren Højsgaard Sent: 08 July 2018 15:46 To: r-devel@r-project.org Subject: Re: [Rd] [R] consider running tools::compactPDF(gs_quality = "ebook") Dear all, I run R CMD build

Re: [Rd] issue with unz()?

2017-02-09 Thread jing hua zhao
The 2015 does contain three files. From: jing hua zhao <jinghuaz...@hotmail.com> Sent: 10 February 2017 00:13 To: r-devel@r-project.org Subject: issue with unz()? Dear R-devel, url0514 <- "http://data.dft.gov.uk.s3.amazonaws.com/road-acciden

[Rd] Query over .Fortran call

2013-02-21 Thread jing hua zhao
Dear All, I would like to seek advice regarding .Fortran as I was referred to a query about package pan that the sets of results may alternate between iterations. For reference I have extracted the relevant Fortran as with the R code below. Note several packages based on JL Schafter's S-PLUS

Re: [Rd] CRAN policies

2012-03-28 Thread jing hua zhao
From: x...@yihui.name Date: Tue, 27 Mar 2012 16:40:04 -0500 To: r-devel@r-project.org Subject: Re: [Rd] CRAN policies I have been wondering if it is possible to automate the checking process to reduce human efforts, e.g. automatically check the packages submitted to FTP, and send the

[Rd] bookmarks with PDF()

2011-08-12 Thread jing hua zhao
Dear R-developers, I am wondering if it is possible to add bookmarks automatically to individual figures for pdf() when multiple figures are produced? If so, it would be very handy. Best regards, Jing Hua [[alternative HTML version

Re: [Rd] Deferred Default Marker

2010-04-26 Thread jing hua zhao
Hi Terry, Not aware about the issue, e.g., from $ uname -a Linux c06.mrc-epid.private.cam.ac.uk 2.6.9-89.0.23.ELsmp #1 SMP Fri Mar 5 23:27:13 EST 2010 x86_64 x86_64 x86_64 GNU/Linux I got library(kinship) Loading required package: survival Loading required package: splines Loading required

[Rd] some queries over cross-compilation

2010-04-26 Thread jing hua zhao
Dear R developers, I ran into some problems that I wish to get around. Following the recommendation from Building R for Windows (Duncan's site) I was able to obtain some files from Brian's site for relevant tools for cross-compile. Initially I was able to cross-compile Windows packages

Re: [Rd] some queries over cross-compilation

2010-04-26 Thread jing hua zhao
On 26.04.2010 12:55, jing hua zhao wrote: Dear R developers, I ran into some problems that I wish to get around. Following the recommendation from Building R for Windows (Duncan's site) I was able to obtain some files from Brian's site for relevant tools for cross-compile

Re: [Rd] pnorm

2008-02-08 Thread jing hua zhao
Feb 2008 13:04:58 -0800 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Rd] pnorm On Thu, 7 Feb 2008, jing hua zhao wrote: I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), which gives 4.440892e-16. However, it appears to be 5.30E

[Rd] pnorm

2008-02-07 Thread jing hua zhao
Dear R list, I calculated a two-sided p values according to 2*(1-pnorm(8.104474)), which gives 4.440892e-16. However, it appears to be 5.30E-16 by a colleague and 5.2974E-16 from SAS. I tried to get around with mvtnorm package but it turns out to be using pnorm for univariate case. I should

Re: [Rd] R260 cross-compilation

2007-10-13 Thread jing hua zhao
Here is what I noted down for our system. To reset src/gnuwin32/MkRules as appropriate BUILD=CROSS## if cross-building, is this gcc3 or gcc4?CROSS-GCC=gcc3 R_EXE='/home/jhz22/RCrossBuild/LinuxR/bin/R' Date: Thu, 11 Oct 2007 11:15:08 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:

[Rd] R 2.2.0 + Oracle 10g + Windows XP

2005-12-14 Thread jing hua zhao
Dear R-devlopers, I am experiencing problem with R 2.2.0 after installing Oracle 10g on my Windows XP system. It simply crashes but Rgui appears to be functioning. After I deinstalling Oracle 10g, R.exe start to function again. Any idea how to make them both working? Many thanks, Jinghua