? 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
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 one point this might only refer to the GUI
package-installation interface, but you seem to be saying it's the
install.packages() function as well.
Running an up-to-date RStudio on Linux, FWIW -- maybe weirdness only
happens on other OSs?
Ben Bolker
On 2024-03-20 12:13 p.m., Ivan Krylov via R-help wrote:> ? 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).
>
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]]