Comments (6)
Thanks for the suggestion. Could you give more details on what functionality you have in mind?
I don't quite understand the second paragraph (about the duplication). Citations from REFERENCES.bib appear in help pages if and only if they are requested. They have little effect on the size of pdf manual even if repeated in many help pages, especially if the manual is compressed.
from rdpack.
Thanks for the quick reply. OK -- I have used CSL and recently your Rdpack in a number of packages including this one from CRAN, https://github.com/jinghuazhao/R/tree/master/gap, where I used natture-genetics.csl, The appearances in the reference section is much simplified than other styles such as American Journal of Human Genetics which includes everything.
As for the second paragraph -- we have the nice \inertRef and \insertCite in R but R translates it and unnecessarily into Rd which copies contents from REFERENCE.bib but removes it upon installation. Some references could be really long and this is a massive overhead. It would be nice R does not do that but produces the references on the fly. One example is the recent consortium called Host Genetics Initiatives whose paper includes ~3,000 authors it is unimaginable one can have a nice citation but a simplified one.
from rdpack.
-
I could add a new style or styles. In your example above, I particularly like that the links are over the titles, which significantly reduces clutter.
-
Regarding the second part, do you want the references to appear in the pdf manual? Please note that 'dynamic' or 'on the fly' generation means that a particular content is rendered when the help page is built, including when the pdf file is built (same for static html pages).
Actually, the Rd files are not changed when the package is built. It is true though that R expands some Rd macros and saves them in an rds object, which indeed increases the size of the package. There are good reasons to expand the macros when building a package and there are good reasons to expand later. Actually, in Rdpack 2.2 I switched to expanding the Rd macros at installation but that has other issues and CRAN were justifiably not happy since this creates additional work for them.
I could consider providing a way to request expansion when rendering the pages in html and text format but that would be separate macros or expressions.
from rdpack.
Thanks for the comments -- I reckoned the idea will be effort from CRAN perhaps only matters to them when the point reaches the same prominence as Sweave itself, say. It is true that Rd files remain unchanged but are turned to binary format for easy access from R upon installation. It is also nice to have the references appear in the PDF. I am less familiar with feature request but feel reasonable -- the feasible way would be you work out something efficient and become a core member? Over the years, CRAN has implemented ever-increasing stringent rules to call foreign languages and syntax (also compact PDF, etc ) but would appear less consistent with this for very relaxed citations.
from rdpack.
Dynamic content can be achieved without changes to R, as I indicated in the last sentence of my previous comment. Given that you have such important packages on CRAN (and your contributors to the gap
package), CRAN may be lenient if something is not quite in line.:)
from rdpack.
Indeed it is a good thing Rd is unchanged. Never mind whichever package, it will be on the same page with others; I wish to be a good user to take advantages of things available.
from rdpack.
Related Issues (20)
- natbib compatible commands HOT 2
- Warning in parseLatex(x) : x:1: unexpected '}' HOT 5
- unhandled LaTeX sequence {\'i} -> í HOT 3
- Support for biber? HOT 5
- Switching bibtex parser to rbibutils HOT 2
- genre unknown to bibConvert HOT 4
- possibly non-existing or duplicated key(s) in bib file warning HOT 12
- README, Troubleshooting HOT 2
- doi entries should generate https links HOT 6
- arXiv entry manipulation for manual url? HOT 4
- include example? HOT 1
- Italic text in \insertCite{} HOT 8
- Using `\doi` in place of `\url` HOT 16
- Superfluous braces when citing an entry HOT 7
- Superlfuous escaped LaTeX specials HOT 2
- InsertAllCited on R6 class documentation HOT 14
- partial argument match of key to keys HOT 5
- Encoding issue on windows HOT 2
- Cryptic error message when calling the RStudio addin with no file open in the editor 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 rdpack.