Thank you, but I think I was already using utils. Regards, Jorgen.> environment(install.packages)<environment: namespace:utils>> 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? Execution halted Warning in utils::install.packages("/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz", : installation of package ?/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz? had non-zero exit status From: Ivan Krylov <ikrylov at disroot.org> Date: Wednesday, March 20, 2024 at 11:14 To: Jorgen Harmse via R-help <r-help at r-project.org> Cc: Jorgen Harmse <JHarmse at roku.com> Subject: [EXTERNAL] Re: [R] Building Packages. ? Wed, 20 Mar 2024 16:02:27 +0000 Jorgen Harmse via R-help <r-help at r-project.org> ?????:> > 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) : > > installation of package > ?/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz? > had non-zero exit statusUsing RStudio? It happens to override install.packages with a function that doesn't quite handle file paths. Try utils::install.packages(tar, type = "source", repos = NULL). -- Best regards, Ivan [[alternative HTML version deleted]]
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) > > <environment: namespace:utils> > >> 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? > > Execution halted > > Warning in utils::install.packages("/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz", : > > installation of package ?/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz? had non-zero exit status > > > From: Ivan Krylov <ikrylov at disroot.org> > Date: Wednesday, March 20, 2024 at 11:14 > To: Jorgen Harmse via R-help <r-help at r-project.org> > Cc: Jorgen Harmse <JHarmse at roku.com> > Subject: [EXTERNAL] Re: [R] Building Packages. > ? Wed, 20 Mar 2024 16:02:27 +0000 > Jorgen Harmse via R-help <r-help at r-project.org> ?????: > >>> 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) : >> >> installation of package >> ?/Users/jharmse/Library/CloudStorage/OneDrive-RokuInc/jhBase_1.0.1.tar.gz? >> had non-zero exit status > > Using RStudio? It happens to override install.packages with a function > that doesn't quite handle file paths. Try utils::install.packages(tar, > type = "source", repos = NULL). > > -- > Best regards, > Ivan > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help at 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.
? Wed, 20 Mar 2024 17:00:34 +0000 Jorgen Harmse <JHarmse at roku.com> ?????:> Thank you, but I think I was already using utils. > > Regards, > Jorgen. > > > > environment(install.packages) > > <environment: namespace:utils> > > > 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?Sorry, then it has been my mistake to blame RStudio for this. We can try debugging this. If you start a fresh R process and run tools:::.install_packages(path_to_tarball), the installation will (try to) proceed in the current process instead of a child process. Once it fails, traceback() will be available to show you where the error condition has been raised. What does it say? Alternatively, 1. Check the package R files for stray library() calls. Generally, packages should not be calling library(). 2. Try a "binary search" approach. Make a copy of your package code but remove half of the files (or half of the functions if they live in a single file). Keep removing a half (or go to the other half) depending on whether the same error keeps happening. Good luck! -- Best regards, Ivan