Re: [R] library(hms)

2021-03-17 Thread John Fox

Dear Greg,

As I explained to you in a private email, and as others have told you, 
there is no Install.libraries() command, nor is there an 
install.libraries(0 command, but there is an install.packages() command.


So install.packages("hms") should work, on a Mac or on any other 
internet-connected computer on which R runs -- as you've also been told 
by others, this is not a Mac-specific issue. Note that the argument to 
install.packages must be quoted. See ?install.packages for details.


I'll also repeat the advice that I gave you privately to learn something 
about R before you try to use it, possibly starting with the "An 
Introduction to R" manual that ships with the standard R distribution.


Best,
 John

John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://socialsciences.mcmaster.ca/jfox/

On 2021-03-17 1:07 p.m., Gregory Coats wrote:

On my MacBook, I do not have, and do not know how to install, library(hms).
Greg Coats


library(hms)

Error in library(hms) : there is no package called ‘hms’

Install.libraries(“hms”)

Error: unexpected input in "Install.libraries(“"




__
R-help@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.


Re: [R] library(hms)

2021-03-17 Thread Gregory Coats via R-help
It appears that 
install.libraries(“hms”)
is unsuccessful, but that
install.packages(“hms”)
is successful.

install.packages("lubridate")
downloaded 1.5 MB
install.packages("hms")
downloaded 95 KB
install.packages("data.table")
downloaded 2.2 MB
Greg
> On Mar 17, 2021, at 1:07 PM, Gregory Coats via R-help  
> wrote:
> 
> On my MacBook, I do not have, and do not know how to install, library(hms).
> Greg Coats
> 
>> library(hms)
> Error in library(hms) : there is no package called ‘hms’
>> Install.libraries(“hms”)
> Error: unexpected input in "Install.libraries(“"
>> 
>   [[alternative HTML version deleted]]
> __
> R-help@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.


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] library(hms)

2021-03-17 Thread Caitlin Gibbons
Your opening quote looks slightly different from the closing quote. This 
probably explains why you received the error message regarding “unexpected 
input”. 

I hope this helps. 


> On Mar 17, 2021, at 10:08 AM, Gregory Coats via R-help  
> wrote:
> 
> On my MacBook, I do not have, and do not know how to install, library(hms).
> Greg Coats
> 
>> library(hms)
> Error in library(hms) : there is no package called ‘hms’
>> Install.libraries(“hms”)
> Error: unexpected input in "Install.libraries(“"
>> 
>[[alternative HTML version deleted]]
> 
> __
> R-help@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.

__
R-help@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.


Re: [R] library(hms)

2021-03-17 Thread Caitlin Gibbons
Maybe you used the wrong quotes with the parentheses? 

> On Mar 17, 2021, at 10:08 AM, Gregory Coats via R-help  
> wrote:
> 
> On my MacBook, I do not have, and do not know how to install, library(hms).
> Greg Coats
> 
>> library(hms)
> Error in library(hms) : there is no package called ‘hms’
>> Install.libraries(“hms”)
> Error: unexpected input in "Install.libraries(“"
>> 
>[[alternative HTML version deleted]]
> 
> __
> R-help@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.

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] library(hms)

2021-03-17 Thread Mark Leeds
Hi: install.packages("hms") should work if you have R installed along with
an internet connection.

When you do above, if you get a message about other packages needing to be
installed, then use

install.packages("hms", dependencies = TRUE).





On Wed, Mar 17, 2021 at 1:08 PM Gregory Coats via R-help <
r-help@r-project.org> wrote:

> On my MacBook, I do not have, and do not know how to install, library(hms).
> Greg Coats
>
> > library(hms)
> Error in library(hms) : there is no package called ‘hms’
> > Install.libraries(“hms”)
> Error: unexpected input in "Install.libraries(“"
> >
> [[alternative HTML version deleted]]
>
> __
> R-help@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.
>

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] library(hms)

2021-03-17 Thread Bill Dunlap
install.packages("hms")

A 'library' is a directory (aka folder) that contains installed
'packages'.  I.e., one installs packages into a library, but one does
not install a library.

-Bill

On Wed, Mar 17, 2021 at 10:08 AM Gregory Coats via R-help
 wrote:
>
> On my MacBook, I do not have, and do not know how to install, library(hms).
> Greg Coats
>
> > library(hms)
> Error in library(hms) : there is no package called ‘hms’
> > Install.libraries(“hms”)
> Error: unexpected input in "Install.libraries(“"
> >
> [[alternative HTML version deleted]]
>
> __
> R-help@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.

__
R-help@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.