Comments (6)
That's a great idea indeed, thanks @aL3xa!
Just adding my 2 cents: .rapport.R
or .rapport.conf
might live in user's home dir (both on Unix-like systems and on Windows) and we might add a new line at the end of init.R
to check if that files exists. If so, then it's sourced, so default settings would be overwritten. We just need a function to easily alter that file which would hold some options(...)
calls.
from rapport.
Bumping this issue: why not ask users simply to add some tweaks in their .Rprofile
instead of custom hacks?
from rapport.
My recent request fits this ticket, so here goes the "specification": instead of config files, users can tweak their default settings in .Rprofile
. That's the R way :)
But we need to tweak the current options setup, which messes with global options and we are definitely cluttering up that. Please change the options to work like in pander
package: https://github.com/Rapporter/pander/blob/master/R/options.R
In short: let us have a rapport
option which would hold the current options in a list
. Pls add a helper function (e.g. rapportOptions
) like I did in pander
where users can query and update those easily. Do not forget to update all options
and getOption
calls in the sources and in the docs :)
And a "fallback compatibility" would be awesome for loyal users, so if they have e.g. an rp.file.path
option, then the custom rapportOptions
fn should return that instead of the default one.
from rapport.
I have a few suggestions about this one:
- if we move all options to
rapport
list, we don't needrp.
prefix, or do we? - IMO, getter/setter approach is way better, e.g.
rapportOption('tpl.paths')
should return template paths, butrapportOption('tpl.paths') <- c('/my/path1', '/my/path2')
would be a bit more elegant
Whadda U think?
from rapport.
Yeah, we can drop rp
prefix.
About setter method: as you wish :)
from rapport.
rp
prefix is gone in #93, and users can specify options
in their .Rprofile
, so let's say it's fixed
from rapport.
Related Issues (20)
- please reopen issue #98 HOT 1
- Plot files not regenerated after user deletion HOT 2
- tpl.users option not rendered in report HOT 1
- include an rCharts into a html repport HOT 4
- include an rCharts into a pdf repport HOT 1
- custom footer / headers
- using rapport template over HTTP HOT 3
- Too limited parameter type matching HOT 2
- Removing package website from README which now links to a porn website HOT 4
- Input naming conventions: go native as well HOT 1
- Input description - some inconsistencies HOT 1
- not required standalone input's value is NULL by default HOT 9
- default value for matchable inputs not found HOT 3
- throw error on missing required input
- graphing wizard error HOT 1
- file extension HOT 3
- Default value for required input
- error with rapport.pdf and Logo=TRUE on Windows HOT 4
- More explicit message in Pandoc.convert
- advices on how to use ggplot2 in rapport templates HOT 10
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 rapport.