Re: [R-pkg-devel] Rmarkdown package vignette that reference online images: how to fail gracefully?

2023-10-06 Thread Vinh Nguyen
> > > The parameter responsible for this base64 encoding is called > self_contained, which defaults to TRUE in the rmarkdown::html_document > format, which prettydoc::html_pretty inherits from. Set it to FALSE in > the YAML header of the vignette. > > Note that some other scripts and CSS files may

[R-pkg-devel] Rmarkdown package vignette that reference online images: how to fail gracefully?

2023-10-04 Thread Vinh Nguyen
Dear members of R-package-devel, CRAN has the following policy: Packages which use Internet resources should fail gracefully with an informative message if the resource is not available or has changed (and not give a check warning nor error). I have a CRAN-accepted package with vignettes that

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-09 Thread Vinh Nguyen
On Oct 8, 2015 11:36 PM, "Martin Maechler" <maech...@stat.math.ethz.ch> wrote: > > >>>>> Vinh Nguyen <vinhdi...@gmail.com> > >>>>> on Thu, 8 Oct 2015 20:21:32 -0700 writes: > > > Ahh, sorry for not googling the err

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-08 Thread Vinh Nguyen
bit. Is it possible to add this information to the AIX section of the R-admin manual? Thanks. -- Vinh On Thu, Oct 8, 2015 at 7:22 PM, Vinh Nguyen <vinhdi...@gmail.com> wrote: > One other note: I'm also using the latest src/main/dcf.c that was > giving an issue on AIX pre

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-08 Thread Vinh Nguyen
Please note that if I don't specify those variables, then R 32 bit compiles fine. Thanks. -- Vinh On Thu, Oct 8, 2015 at 6:50 PM, Vinh Nguyen <vinhdi...@gmail.com> wrote: > Dear list, > > I'm following the instructions provided here to compile R 64 bit on > AIX 6.1.

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-08 Thread Vinh Nguyen
One other note: I'm also using the latest src/main/dcf.c that was giving an issue on AIX previously; see [this](https://stat.ethz.ch/pipermail/r-devel/2015-September/071781.html) thread. Thanks. On Thu, Oct 8, 2015 at 6:51 PM, Vinh Nguyen <vinhdi...@gmail.com> wrote: > Please note

[Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-08 Thread Vinh Nguyen
Dear list, I'm following the instructions provided here to compile R 64 bit on AIX 6.1. I did export OBJECT_MODE=64 export CC="gcc -maix64 -pthread" export CXX="g++ -maix64 -pthread" export FC="gfortran -maix64 -pthread" export F77="gfortran -maix64 -pthread" export CFLAGS="-O2 -g -mcpu=power6"

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Vinh Nguyen
On Tue, Sep 22, 2015 at 1:46 AM, Duncan Murdoch wrote: > However, Herve's second example does illustrate a bug I can reproduce: > one character out of 1 was read incorrectly. Could you please try > his final patch and see if it fixes your AIX problems? Just tried

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Vinh Nguyen
On Mon, Sep 21, 2015 at 2:48 PM, Duncan Murdoch wrote: > On 21/09/2015 4:50 PM, Hervé Pagès wrote: >> Hi, >> >> Note that one significant change to read.dcf() that happened since R >> 3.0.2 is the addition of support for arbitrary long lines (commit >> 63281), which

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Vinh Nguyen
for me. Would definitely like to help figure out what's wrong with the new dcf.c on AIX. Thanks. -- Vinh On Mon, Sep 21, 2015 at 10:01 AM, Vinh Nguyen <vinhdi...@gmail.com> wrote: > Hi there, > > I just wanted to follow up on this readDCF issue with install.packages > on AIX on

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Vinh Nguyen
R 2.15.3. This makes install.packages not usable. Thanks. -- Vinh On Tue, Nov 11, 2014 at 10:23 AM, Vinh Nguyen <vinhdi...@gmail.com> wrote: > Dear list (re-posting from r-help as r-devel is probably more appropriate), > > I was able to successfully compile R on our AIX bo

Re: [Rd] IdntoAscii issue with KERNEL32.dll on 64-bit R on Windows Server 2003 x64 SP2

2015-05-06 Thread Vinh Nguyen
On Wed, May 6, 2015 at 9:44 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On the MSDN page for that function, it mentions that you need a header file and DLL to use it in XP or Server 2003. You might try downloading the DLL to see if it works for you automagically; I think it's

[Rd] IdntoAscii issue with KERNEL32.dll on 64-bit R on Windows Server 2003 x64 SP2

2015-05-06 Thread Vinh Nguyen
Dear list, With the new R 3.2.0 on the aforementioned platform, I get the following pop-up error when I enter ?update.packages using R64: The procedure entry point IdnToAscii could not be located in the dynamic link library KERNEL32.dll That is, my command never gets executed. This does NOT

[Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2014-11-11 Thread Vinh Nguyen
Dear list (re-posting from r-help as r-devel is probably more appropriate), I was able to successfully compile R on our AIX box at work using the GNU compilers following the instructions on the R Administration guide. The output can be seen at here

Re: [Rd] build 32-bit R on x86_64?

2011-11-03 Thread Vinh Nguyen
, Aug 10, 2011 at 8:37 AM, Vinh Nguyen vqngu...@uci.edu wrote: On Tue, Aug 9, 2011 at 6:24 PM, Simon Urbanek simon.urba...@r-project.org wrote: It actually works ;) I'm using it for testing on my RForge.net machine and yes, it's Debian - everything just works there :). But back to the original

Re: [Rd] build 32-bit R on x86_64?

2011-08-10 Thread Vinh Nguyen
On Tue, Aug 9, 2011 at 6:24 PM, Simon Urbanek simon.urba...@r-project.org wrote: It actually works ;) I'm using it for testing on my RForge.net machine and yes, it's Debian - everything just works there :). But back to the original question. First a minor detail, don't set environment

[Rd] build 32-bit R on x86_64?

2011-08-09 Thread Vinh Nguyen
Dear R-Devel, I'm using Ubuntu on an x86_64 machine and would like to have both the 32-bit and 64-bit versions of R built from source. By default, following the usual build procedures yields 64 bit R. Looking at [these](http://cran.r-project.org/doc/manuals/R-admin.html#Sub_002darchitectures),

Re: [Rd] build 32-bit R on x86_64?

2011-08-09 Thread Vinh Nguyen
On Tue, Aug 9, 2011 at 4:52 PM, Joris Meys jorism...@gmail.com wrote: The architecture is called i386. Try r_arch=i386 ./configure That should work. Cheers Joris Thank you for your response Joris. However, I still get: /usr/bin/install: cannot create regular file

Re: [Rd] [Roxygen-devel] Roxygen: @example tag does not work for me

2010-11-04 Thread Vinh Nguyen
I didn't know @example path/to/file.R was available until you mentioned the UseR! 2010 presentation. If that's the case, I'm going to guess that you have to specify use.Rd2=TRUE in roxygenize(), as I've found most of the new features mentioned in that presentation to require it. On Thu, Nov 4,

[Rd] args() and body() equivalents for S4 methods?

2010-10-05 Thread Vinh Nguyen
but are there equivalents to the args() and body() functions? Thanks. Vinh -- Vinh Nguyen Department of Statistics Donald Bren School of ICS 2231 Bren Hall University of California, Irvine Irvine, CA 92607 vqngu...@uci.edu | http://www.ics.uci.edu/~vqnguyen/ Schedule a meeting: http://tungle.me/VinhNguyen

Re: [Rd] args() and body() equivalents for S4 methods?

2010-10-05 Thread Vinh Nguyen
On Tue, Oct 5, 2010 at 4:45 PM, Thomas Lumley tlum...@uw.edu wrote: You could define args4-function(generic, signature) args(getMethod(generic,signature)) and body4-function(generic, signature) body(getMethod(generic,signature)) or use selectMethod() instead of getMethod() if you want to

[Rd] advice on writing/maintaining an R package with a version control system

2010-09-16 Thread Vinh Nguyen
since we're using version control. 2. What is your process for updating and testing your code? Do you run checks, build, and re-install the package to test? Or do you have some fancy workflow? Please share. Thanks for your advice. Vinh -- Vinh Nguyen Department of Statistics Donald Bren School

Re: [Rd] R + C + Lapack toy regression example

2009-09-24 Thread Vinh Nguyen
thank you William Dunlap and professor Bates for your responses. Since the first argument is always an N for linear regression, i just placed const char* trans = N; in my .c file and things worked. See some comments below. On Thu, Sep 24, 2009 at 5:50 AM, Douglas Bates ba...@stat.wisc.edu wrote:

Re: [Rd] R + C + Lapack toy regression example

2009-09-24 Thread Vinh Nguyen
On Thu, Sep 24, 2009 at 11:49 AM, Simon Urbanek simon.urba...@r-project.org wrote: As Doug pointed out you don't want to be using .C(). As for matrix manipulations - they are usually done directly on the objects which are vectors stored in column-major order. i meant .Call(). also, sorry for

[Rd] R + C + Lapack toy regression example

2009-09-23 Thread Vinh Nguyen
dear list, since matrix manipulations is often of interest in statistical computations, i'd like to get a working example of using Lapack for regression. However, i run into an error. My matrix-lapack-example.c file: #include R_ext/Lapack.h void reg(const char* trans, const int* m, const int*

Re: [Rd] building r packages for windows on a mac/linux

2009-09-04 Thread Vinh Nguyen
Hin-Tak Leung wrote: --- On Thu, 3/9/09, Vinh Nguyen vinhdi...@gmail.com wrote: hmmmtried building R-2.8.0 on my mac, didn't work.  i think it got the very end before failing: i386-mingw32-windres --preprocessor=i386-mingw32-gcc -E -xc -DRC_INVOKED -I /Users/vinh/Downloads/Rwin/R