- Hawthorn L Beyer. Hawth’s analysis tools for arcgis, 2004.Google Scholar
- Roger Bivand and Nicholas Lewin-Koh. maptools: Tools for reading and handling spatial objects, 2014. URL http://CRAN.R-project.org/package=maptools. R package version 0.8-30.
- Roger Bivand, Tim Keitt, and Barry Rowlingson. rgdal: Bindings for the Geospatial Data Abstraction Library, 2014. URL http://CRAN.R-project.org/package=rgdal. R package version 0.9-1.
- Roger S Bivand, Edzer J Pebesma, Virgilio Gómez-Rubio, and Edzer Jan Pebesma. Applied spatial data analysis with R, volume 747248717. Springer, 2008.Google Scholar
- Gerald Evenden. Proj. 4–cartographic projections library. Source code and documentation available from trac. osgeo. org/proj, 1990.Google Scholar
- Carl Franklin and Paula Hane. An introduction to geographic information systems: Linking maps to databases [and] maps for the rest of us: Affordable and fun. Database, 15(2):12–15, 1992.Google Scholar
- Carlo Gaetan, Xavier Guyon, and Kevin Bleakley. Spatial statistics and modeling, volume 271. Springer, 2010.Google Scholar
- E Grafarend. The optimal universal transverse mercator projection. In Geodetic Theory Today, pages 51–51. Springer, 1995.Google Scholar
- John W Hager, James F Behensky, and Brad W Drew. The universal grids: Universal transverse mercator (utm) and universal polar stereographic (ups). edition 1. Technical report, DTIC Document, 1989.Google Scholar
- Mordechai Haklay and Patrick Weber. Openstreetmap: User-generated street maps. Pervasive Computing, IEEE, 7(4):12–18, 2008.Google Scholar
- Yun Feng Nie, Hu Xu, and Hai Ling Liu. The design and implementation of tile map service. Advanced Materials Research, 159:714–719, 2011.Google Scholar
- DT QGis. Quantum gis geographic information system. Open Source Geospatial Foundation Project, 2011.Google Scholar
- ESRI Software. ESRI Shapefile Technical Description, 1998. URL https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf.
- Simon Urbanek. snippets: Code snippets, mostly visualization-related. URL http://www.rforge.net/snippets/. R package version 0.1-0.
I'm trying to use
knitcitations
and add bibliography to the R Markdown document that I'm drafting in R Studio. The header of my document looks like this:I want to add the bibliography at the end using the following code:
In this paper we analyze the spatial patterns of the risk of unprotected sexual intercourse for Italian women during their initial experience with sexual intercourse. We rely on geo-referenced survey data from the Italian Fertility and Family Survey, and we use a Bayesian approach relying on weakly informative prior distributions.
The reference file
bibliography.bib
has the following content:However, the produced output appears as comments, not as bibliographic entry:
The file is compiled with this code:
For brevity, I changed the paths to
_paper
and _paper
.When I tried to follow the advice on including bibliography in RStudio the document was produced with no bibliographic entries at all. Hence my question, where I'm making the mistake and how can I force generation of bibliographic entries when working in RStudio?
![Statistics Statistics](https://static.cambridge.org/resource/id/urn:cambridge.org:id:binary:20161012101404421-0921:9781139628785:fig4_8.png?pub-status=live)
Following very useful comments, ideally I would like to avoid explicitly indicating cited works in the attached document. As a matter of fact, I'm interested in including bibliography that will consist of some cited works but also papers that are relevant to the main document but are not explicitly referenced in the document.
KonradKonrad7,9901010 gold badges5656 silver badges107107 bronze badges
3 Answers
The pandoc documentation says:
If you want to include items in the bibliography without actually citing them in the body text, you can define a dummy nocite metadata field and put the citations there:
In this example, the document will contain a citation for item3 only, but the bibliography will contain entries for item1, item2, and item3.
Ben BolkerBen Bolker138k1414 gold badges243243 silver badges330330 bronze badges
Here is minimal working example:
paper.Rmd
references.bib
Console output
paper.pdf
zx8754zx875431.8k77 gold badges7070 silver badges109109 bronze badges
If you want to include all references in the bibtex file, you can use, as mentioned by frankyan here
The
RainerRainer@*
is a wildcard for all references.5,82511 gold badge1313 silver badges1616 bronze badges