Usethis: browseURL() on RStudio Server

Created on 14 Jan 2018  路  8Comments  路  Source: r-lib/usethis

The browseURL() usage in use_course() doesn't have the desired effect of opening the newly created directory on RStudio server. It attempts to open something like "8787/files/rematch2-master".

Reported by @mdsumner, who might care to elaborate here.

This is related to, but not the same as #129, in which browseURL() is being used to open an RStudio Project in, say, create_package().

bug

All 8 comments

cc @hadley

Maybe should just suppress on RStudio server?

Do you happen to know the official way to test if running on RStudio server?

rstudioapi::versionInfo()$mode

Consultation with hosted apps confirms that yes, I should just suppress this entirely on RStudio server.

@mdsumner Are you willing to install usethis from GitHub and confirm that use_course() behaves well on RStudio server? Specifically, it should not attempt to browse the newly created folder. The path should be clear from messages and the user will have to figure out how they want to proceed.

LGTM -use_course behaves well for me on RStudio Server ( also love how create_package now works to open the project :)

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lwjohnst86 picture lwjohnst86  路  7Comments

hadley picture hadley  路  5Comments

aosmith16 picture aosmith16  路  5Comments

jennybc picture jennybc  路  4Comments

hadley picture hadley  路  3Comments