Comments (4)
Thank you for waiting patiently. I just added a parameter
hgd(
... ,
reset_par = getOption("httpgd.reset_par", FALSE)
)
that toggles this functionality.
from httpgd.
The "clean" button in RStudio kills the graphics device which results in par
being reset.
This seems to be the recommended way of resetting par
(https://stackoverflow.com/questions/5789982/reset-par-to-the-default-values-at-startup).
In httpgd this would mean that the webserver had to be shut down and restarted, which I think we should avoid.
Do you shink we should make a copy of the par
arguments as suggested by the second answer of the stackoverflow link:
opar <- par() # on startup
# ...
par(opar) # on "clean"
Or is resetting the mfrow argument after clean sufficient?
par(mfrow = c(1, 1))
I am not exactly sure what other settings of par
are commonly used.
from httpgd.
This is an old session, but I do think it's more convenient if there's a button or command to reset the par
. Is it possible to save a default par
object when startup and add a button on the toolbar of the plot window to reset par
? if that's easier than killing the server and restarting it. Thanks.
from httpgd.
Thank you for your request, I agree and have added it to the 1.3 tracking issue.
from httpgd.
Related Issues (20)
- Broken image in this package (pkgdown) home page HOT 3
- Package installation currently fails for v1.3.0 HOT 15
- Some versions of libtiff fail to compile HOT 9
- No plot viewer shown in vscode HOT 2
- Can't clear previous plots when re-running a new R script HOT 1
- .vsc.browser () is not found
- Pdf option not available when exporting plot HOT 2
- Resize plot to any ratio and size HOT 1
- fonts not working on Linux HOT 7
- Open plots in external browser by default
- `par_old = par(no.readonly = TRUE)` triggers the plot window and makes the subsequent figure size incorrect
- Can't open Rplot window when running vscode-R HOT 1
- http no response when get plot HOT 2
- not respecting spacings in ggplot HOT 2
- Server don't response when used via RServe
- CRAN status HOT 31
- Server immediately crash HOT 28
- Use GH releases for CRAN releases HOT 1
- `hgd_browse()`: This site canβt be reached HOT 2
- httpgd crashing and live html site not loading in VScode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpgd.