Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servers tidying up #773

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Servers tidying up #773

merged 2 commits into from
Mar 20, 2023

Conversation

hadley
Copy link
Member

@hadley hadley commented Mar 15, 2023

  • Drop interactive prompt for server name
  • Extract out registerServer() to reduce duplicated code
  • Move tests from test-cert.R to test-servers.R
  • Add more tests

* Drop interactive prompt for server name
* Extract out `registerServer()` to reduce duplicated code
* Move tests from `test-cert.R` to `test-servers.R`
* Add more tests
@hadley hadley requested a review from aronatkins March 15, 2023 20:15
gcFirst = FALSE
)

start <- proc.time()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is more interesting to obtain the elapsed time than the process time, since an HTTP request could take a long time, but consume no CPU.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confusingly proc.time() returns user, system, and elapsed time:

> proc.time()
      user     system    elapsed 
   766.150    229.515 246336.283 

@hadley hadley merged commit fb13848 into main Mar 20, 2023
@hadley hadley deleted the servers-tidy branch March 20, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants