Re: [R] Building Packages.

2024-03-21 Thread Ivan Krylov via R-help
В Thu, 21 Mar 2024 18:45:35 + Jorgen Harmse via R-help пишет: > The problem may have been that this package is so important to me > that I put it in .Rprofile. The package was not installed for the new > version of R, so every R session started with an annoying error > message. Presumably a s

Re: [R] Building Packages.

2024-03-21 Thread Jorgen Harmse via R-help
> Turns out that RStudio replaces the install.packages object in the utils > package. > Duncan Murdoch So RStudio unlocks the bindings and alters the exported environment? That seems like another reason to stick to the terminal interface. >> Thank you. tools:::.install_packages works. > I'm gl

Re: [R] Building Packages.

2024-03-21 Thread Ben Bolker
5:53 AM To: peter dalgaard Cc: Jorgen Harmse ; r-help@r-project.org; Martin Maechler Subject: Re: [R] Building Packages. Yes, you're right.  The version found in the search list entry for "package:utils" is the RStudio one; the ones found with two or three colons are the orig

Re: [R] Building Packages.

2024-03-21 Thread Duncan Murdoch
Message- From: R-help On Behalf Of Duncan Murdoch Sent: Thursday, March 21, 2024 5:53 AM To: peter dalgaard Cc: Jorgen Harmse ; r-help@r-project.org; Martin Maechler Subject: Re: [R] Building Packages. Yes, you're right. The version found in the search list entry for "package:uti

Re: [R] Building Packages.

2024-03-21 Thread avi.e.gross
Harmse ; r-help@r-project.org; Martin Maechler Subject: Re: [R] Building Packages. Yes, you're right. The version found in the search list entry for "package:utils" is the RStudio one; the ones found with two or three colons are the original. Duncan Murdoch On 21/03/2024 5

Re: [R] Building Packages.

2024-03-21 Thread Ben Bolker
Is your Fedora machine using the bspm package with bspm::enable() in the .Rprofile (to install binary packages from the r2u repository)? bspm adds a hook by using trace() on install.packages, which makes it look like this. My guess is that if you start with --vanilla *or* run bspm::disable

Re: [R] Building Packages.

2024-03-21 Thread Duncan Murdoch
Yes, you're right. The version found in the search list entry for "package:utils" is the RStudio one; the ones found with two or three colons are the original. Duncan Murdoch On 21/03/2024 5:48 a.m., peter dalgaard wrote: Um, what's with the triple colon? At least on my install, double seems

Re: [R] Building Packages.

2024-03-21 Thread peter dalgaard
Um, what's with the triple colon? At least on my install, double seems to suffice: > identical(utils:::install.packages, utils::install.packages) [1] TRUE > install.packages function (...) .rs.callAs(name, hook, original, ...) -pd > On 21 Mar 2024, at 09:58 , Duncan Murdoch wrote: > > The g

Re: [R] Building Packages.

2024-03-21 Thread Duncan Murdoch
The good news for Jorgen (who may not be reading this thread any more) is that one can still be sure of getting the original install.packages() by using utils:::install.packages( ... ) with *three* colons, to get the internal (namespace) version of the function. Duncan Murdoch On 21/0

Re: [R] Building Packages.

2024-03-21 Thread Martin Maechler
> Ben Bolker > on Wed, 20 Mar 2024 13:25:33 -0400 writes: >Hmm, looks platform-specific. Under Linux both RStudio > and external R console return > a0b52513622c41c11e3ef57c7a485767 > for digest::digest(install.packages) Well, platform-specific maybe, notably pr

Re: [R] Building Packages.

2024-03-21 Thread Martin Maechler
> "Duncan Murdoch on Wed, 20 Mar 2024 13:20:12 -0400 writes: > On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: >> On 20/03/2024 12:37 p.m., Ben Bolker wrote: >>> Ivan, can you give more detail on this? I've heard this >>> issue mentioned, but when I open RStudio and run >>>

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 19:26:53 + Jorgen Harmse пишет: > Thank you. tools:::.install_packages works. I'm glad it works, but it shouldn't be necessary to use (and is not part of the API: not documented to keep working this way). Since you're already using devtools, perhaps devtools::install will

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
urce) ) file.copy(DESC.source, file.path(package.dir,"DESCRIPTION"), overwrite=TRUE) roxygenise(package.dir,clean=clean) tar <- devtools::build(package.dir) if (install) install.packages(tar,type='source',repos=NULL) invisible() } From: Ivan Krylov Date:

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 17:00:34 + Jorgen Harmse пишет: > Thank you, but I think I was already using utils. > > Regards, > Jorgen. > > > > environment(install.packages) > > > > > utils::install.packages('/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz',type='source

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
x27;width')} #' #' @export width <- function(dw) options(width = options('width')[[1L]] + as.integer(dw)) From: Duncan Murdoch Date: Wednesday, March 20, 2024 at 12:09 To: Jorgen Harmse , Ivan Krylov , Jorgen Harmse via R-help Subject: [EXTERNAL] Re: [R] Buildi

Re: [R] Building Packages.

2024-03-20 Thread Ben Bolker
Hmm, looks platform-specific. Under Linux both RStudio and external R console return a0b52513622c41c11e3ef57c7a485767 for digest::digest(install.packages) On 2024-03-20 1:20 p.m., Duncan Murdoch wrote: On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: On 20/03/2024 12:37 p.m., Ben Bolker wro

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 12:37:39 -0400 Ben Bolker пишет: > Ivan, can you give more detail on this? I've heard this issue > mentioned, but when I open RStudio and run find("install.packages") > it returns "utils::install.packages", and running dump() from within > RStudio console and from an external

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
On 20/03/2024 1:07 p.m., Duncan Murdoch wrote: On 20/03/2024 12:37 p.m., Ben Bolker wrote: Ivan, can you give more detail on this? I've heard this issue mentioned, but when I open RStudio and run find("install.packages") it returns "utils::install.packages", and running dump() from within R

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
stallation of package �/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz� had non-zero exit status From: Ivan Krylov Date: Wednesday, March 20, 2024 at 11:14 To: Jorgen Harmse via R-help Cc: Jorgen Harmse Subject: [EXTERNAL] Re: [R] Building Packages. � Wed, 20 Mar 2024 16:0

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
On 20/03/2024 12:37 p.m., Ben Bolker wrote: Ivan, can you give more detail on this? I've heard this issue mentioned, but when I open RStudio and run find("install.packages") it returns "utils::install.packages", and running dump() from within RStudio console and from an external "R --vanilla"

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
From: Ivan Krylov Date: Wednesday, March 20, 2024 at 11:14 To: Jorgen Harmse via R-help Cc: Jorgen Harmse Subject: [EXTERNAL] Re: [R] Building Packages. � Wed, 20 Mar 2024 16:02:27 + Jorgen Harmse via R-help �: > > install.packages(tar,type='source',repos=NULL) >

Re: [R] Building Packages.

2024-03-20 Thread Ben Bolker
Ivan, can you give more detail on this? I've heard this issue mentioned, but when I open RStudio and run find("install.packages") it returns "utils::install.packages", and running dump() from within RStudio console and from an external "R --vanilla" gives identical results. I thought at on

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
В Wed, 20 Mar 2024 16:02:27 + Jorgen Harmse via R-help пишет: > > install.packages(tar,type='source',repos=NULL) > > Error in library(jhBase) : there is no package called ‘jhBase’ > > Execution halted > > Warning in install.packages(tar, type = "source", repos = NULL) : > > installati

[R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
I have a source file with oxygen-style comments (and description & licence files), and I’m trying to build a package. oxygen & devtools seem to work, and the tarball exists, but install.packages balks. Does anyone know what’s happening? Regards, Jorgen Harmse. > roxygenise(package.dir,clean=T

Re: [R] building packages: "R Help for package foo" vs. "HTML Help"?

2008-10-06 Thread Duncan Murdoch
Uwe Ligges wrote: Michael Friendly wrote: Uwe Ligges wrote: Michael Friendly wrote: In building a package, what are the settings in the package files or the build commands that determine whether the compiled HTML help windows have the window title "R Help for package foo" vs. "

Re: [R] building packages: "R Help for package foo" vs. "HTML Help"?

2008-10-06 Thread Uwe Ligges
Michael Friendly wrote: Uwe Ligges wrote: Michael Friendly wrote: In building a package, what are the settings in the package files or the build commands that determine whether the compiled HTML help windows have the window title "R Help for package foo" vs. "HTML Help"? Michael, can yo

Re: [R] building packages: "R Help for package foo" vs. "HTML Help"?

2008-10-05 Thread Michael Friendly
Uwe Ligges wrote: Michael Friendly wrote: In building a package, what are the settings in the package files or the build commands that determine whether the compiled HTML help windows have the window title "R Help for package foo" vs. "HTML Help"? Michael, can you give an example for a pag

Re: [R] building packages: "R Help for package foo" vs. "HTML Help"?

2008-10-05 Thread Uwe Ligges
Michael Friendly wrote: In building a package, what are the settings in the package files or the build commands that determine whether the compiled HTML help windows have the window title "R Help for package foo" vs. "HTML Help"? Michael, can you give an example for a page with title "HTML

[R] building packages: "R Help for package foo" vs. "HTML Help"?

2008-10-05 Thread Michael Friendly
In building a package, what are the settings in the package files or the build commands that determine whether the compiled HTML help windows have the window title "R Help for package foo" vs. "HTML Help"? I often have quite a few help files active, and it is much more convenient to navigate am

Re: [R] building packages for Linux vs. Windows

2008-02-11 Thread Paul Gilbert
Erin Hodgess wrote: > Hi R People: > > I sure that this is a really easy question, but here goes: > > I'm trying to build a package that will run on both Linux and Windows. > > However, there are several commands in a section that will be > different in Linux than they are in Windows. > Erin Se

Re: [R] building packages for Linux vs. Windows

2008-02-10 Thread Gabor Grothendieck
On Feb 10, 2008 1:20 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 10/02/2008 1:07 PM, Erin Hodgess wrote: > > Hi R People: > > > > I sure that this is a really easy question, but here goes: > > > > I'm trying to build a package that will run on both Linux and Windows. > > > > However, there a

Re: [R] building packages for Linux vs. Windows

2008-02-10 Thread John Sorkin
On my widows XP computer, W >From my windows XP system running R 2.6.1: > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32

Re: [R] building packages for Linux vs. Windows

2008-02-10 Thread Ted Harding
On 10-Feb-08 18:07:56, Erin Hodgess wrote: > Hi R People: > > I sure that this is a really easy question, but here goes: > > I'm trying to build a package that will run on both Linux and Windows. > > However, there are several commands in a section that will be > different in Linux than they are

Re: [R] building packages for Linux vs. Windows

2008-02-10 Thread Uwe Ligges
Duncan Murdoch wrote: > On 10/02/2008 1:07 PM, Erin Hodgess wrote: >> Hi R People: >> >> I sure that this is a really easy question, but here goes: >> >> I'm trying to build a package that will run on both Linux and Windows. >> >> However, there are several commands in a section that will be >> d

Re: [R] building packages for Linux vs. Windows

2008-02-10 Thread Duncan Murdoch
On 10/02/2008 1:07 PM, Erin Hodgess wrote: > Hi R People: > > I sure that this is a really easy question, but here goes: > > I'm trying to build a package that will run on both Linux and Windows. > > However, there are several commands in a section that will be > different in Linux than they are

[R] building packages for Linux vs. Windows

2008-02-10 Thread Erin Hodgess
Hi R People: I sure that this is a really easy question, but here goes: I'm trying to build a package that will run on both Linux and Windows. However, there are several commands in a section that will be different in Linux than they are in Windows. Would I be better off just to build two separ

Re: [R] building packages: hhc.exe not found using xp

2007-11-19 Thread Prof Brian Ripley
On Mon, 19 Nov 2007, Nicodemus, Kristin (NIH/NIMH) [C] wrote: > Hello, > > Apologies in advance if this should be in R-devel, not Rhelp. I did > read through the R-devel thread started by Gabor Grothendieck in > September of this year - I am getting the exact same error using a new > computer

[R] building packages: hhc.exe not found using xp

2007-11-19 Thread Nicodemus, Kristin (NIH/NIMH) [C]
Hello, Apologies in advance if this should be in R-devel, not Rhelp. I did read through the R-devel thread started by Gabor Grothendieck in September of this year - I am getting the exact same error using a new computer that has XP installed, not vista, complaining that the file hhc.exe is no

Re: [R] building packages on Windows

2007-10-03 Thread Uwe Ligges
Duncan Murdoch wrote: > On 01/10/2007 11:45 PM, Edna Bell wrote: >> Hi again. >> >> I'm sure that this is really simple. >> >> I'm trying to build a package on a Windows Vista machine. I use >> Rcmd build --binary test >> >> but I get the "Please set TMPDIR to a valid temporary directory" >> >>

Re: [R] building packages on Windows

2007-10-02 Thread Duncan Murdoch
On 01/10/2007 11:45 PM, Edna Bell wrote: > Hi again. > > I'm sure that this is really simple. > > I'm trying to build a package on a Windows Vista machine. I use > Rcmd build --binary test > > but I get the "Please set TMPDIR to a valid temporary directory" > > I tried TMPDIR=c:\temp > but to

Re: [R] building packages on Windows

2007-10-01 Thread Gabor Grothendieck
This happened with older versions of R but its fixed in the more recent R 2.6.0 versions. On 10/1/07, Edna Bell <[EMAIL PROTECTED]> wrote: > Hi again. > > I'm sure that this is really simple. > > I'm trying to build a package on a Windows Vista machine. I use > Rcmd build --binary test > > but I

[R] building packages on Windows

2007-10-01 Thread Edna Bell
Hi again. I'm sure that this is really simple. I'm trying to build a package on a Windows Vista machine. I use Rcmd build --binary test but I get the "Please set TMPDIR to a valid temporary directory" I tried TMPDIR=c:\temp but to no avail. Please help. thanks __

Re: [R] Building packages including Java files

2007-09-21 Thread Bio7
I think you have to visit the following website to get information about java packages: http://www.rforge.net/rJava/ http://www.rforge.net/rJava/ Then of course the official R documentation which describes how to build packages for R. With kind regards Marcel -- View this message in context

[R] Building packages including Java files

2007-09-21 Thread Mark Collins
Hello all, Can someone please point me in the right direction to find the documentation that explains how to build packages that include java code. Thank you. I'm sorry if this is entirely obvious! Best regards, Mark -- Mark Collins [EMAIL PROTECTED]