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

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
Thank you. tools:::.install_packages works. It happens that one of the functions in my package is a utility to build packages. I guess I should change the install step. Regards, Jorgen. #' Build package from source #' #' \code{roxygen2} & \code{devtools} have several steps to build a

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) > > > > >

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
I was thinking of making it Open Source, but I haven’t yet. It’s mostly a collection of small utility functions (more oxygen comments than actual code). I built the package on my Windows machine a few months ago, but my Mac first wouldn’t install roygen2 & devtools and now (with the latest

[R] geom_edge & color

2024-03-20 Thread SIBYLLE STÖCKLI via R-help
Dear community I am using ggraph to plot a network analysis. See part 2 in the working example. Besides different colors for different groups of nodes: --> geom_node_point(aes(size = V(network)$hub_score*200, color= as.factor(V(network)$community))) I additionally want to consider different

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

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

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

Re: [R] Building Packages.

2024-03-20 Thread Duncan Murdoch
Is the source for your package online somewhere? Duncan Murdoch On 20/03/2024 1:00 p.m., Jorgen Harmse via R-help wrote: Thank you, but I think I was already using utils. Regards, Jorgen. environment(install.packages)

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

Re: [R] Building Packages.

2024-03-20 Thread Jorgen Harmse via R-help
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',repos=NULL) Error in library(jhBase) : there is no package called �jhBase�

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

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) : > >

[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. >

[ESS] Where does ESS saves ESSR environment information

2024-03-20 Thread Iago Giné Vázquez via ESS-help
Hi all, I have included a line such as the following in my .emacs file: (add-hook 'ess-r-post-run-hook (lambda () (ess-load-file "~/startR.r"))) I have restarted Emacs, tried to start R and get an error due to that R did not find the file. I realized that I put ~ thinking in home path for