|
77 | 77 | given-names: Marc |
78 | 78 | email: marcbasic@gmail.com |
79 | 79 |
|
80 | | -# Test in mock package |
| 80 | +# cff_write creates and updates inst/CITATION in a mock package |
81 | 81 |
|
82 | 82 | Code |
83 | 83 | auto_cit1 |
|
113 | 113 | version = {1.0.0}, |
114 | 114 | } |
115 | 115 |
|
116 | | ---- |
117 | | - |
118 | | - Code |
119 | | - cffobj |
120 | | - Output |
121 | | - cff-version: 1.2.0 |
122 | | - message: 'To cite package "manyurls" in publications use:' |
123 | | - type: software |
124 | | - license: GPL-3.0-only |
125 | | - title: 'manyurls: A lot of urls' |
126 | | - version: 1.0.0 |
127 | | - doi: 10.1111/2041-210X.12469 |
128 | | - identifiers: |
129 | | - - type: url |
130 | | - value: https://r-forge.r-project.org/projects/test/ |
131 | | - - type: url |
132 | | - value: http://google.ru |
133 | | - - type: url |
134 | | - value: https://gitlab.com/r-packages/behaviorchange |
135 | | - abstract: This package has many urls. Specifically, 1 Bug Reports and 6 URLs. Expected |
136 | | - is to have 1 repository-code, 1 url and 3 URLs, since there is 1 duplicate and 1 |
137 | | - invalid url. |
138 | | - authors: |
139 | | - - family-names: Basic |
140 | | - given-names: Marc |
141 | | - email: marcbasic@gmail.com |
142 | | - preferred-citation: |
143 | | - type: article |
144 | | - title: 'RNeXML: A Package for Reading and Writing Richly Annotated Phylogenetic, |
145 | | - Character, and Trait Data in R' |
146 | | - authors: |
147 | | - - family-names: Boettiger |
148 | | - given-names: Carl |
149 | | - - family-names: Chamberlain |
150 | | - given-names: Scott |
151 | | - - family-names: Vos |
152 | | - given-names: Rutger |
153 | | - - family-names: Lapp |
154 | | - given-names: Hilmar |
155 | | - journal: Methods in Ecology and Evolution |
156 | | - year: '2016' |
157 | | - volume: '7' |
158 | | - doi: 10.1111/2041-210X.12469 |
159 | | - start: '352' |
160 | | - end: '357' |
161 | | - repository-code: https://github.com/test/package |
162 | | - url: https://test.github.io/package/ |
163 | | - contact: |
164 | | - - family-names: Basic |
165 | | - given-names: Marc |
166 | | - email: marcbasic@gmail.com |
167 | | - references: |
168 | | - - type: book |
169 | | - title: 'ggplot2: Elegant Graphics for Data Analysis' |
170 | | - authors: |
171 | | - - family-names: Wickham |
172 | | - given-names: Hadley |
173 | | - publisher: |
174 | | - name: Springer-Verlag New York |
175 | | - year: '2016' |
176 | | - isbn: 978-3-319-24277-4 |
177 | | - url: https://ggplot2.tidyverse.org |
178 | | - |
179 | | ---- |
180 | | - |
181 | | - Code |
182 | | - toBibtex(cit) |
183 | | - Output |
184 | | - @Article{, |
185 | | - title = {{RNeXML}: {A} Package for Reading and Writing Richly Annotated Phylogenetic, Character, and Trait Data in {R}}, |
186 | | - journal = {Methods in Ecology and Evolution}, |
187 | | - author = {Carl Boettiger and Scott Chamberlain and Rutger Vos and Hilmar Lapp}, |
188 | | - year = {2016}, |
189 | | - volume = {7}, |
190 | | - pages = {352--357}, |
191 | | - doi = {10.1111/2041-210X.12469}, |
192 | | - } |
193 | | - |
194 | | - @Book{, |
195 | | - author = {Hadley Wickham}, |
196 | | - title = {ggplot2: Elegant Graphics for Data Analysis}, |
197 | | - publisher = {Springer-Verlag New York}, |
198 | | - year = {2016}, |
199 | | - isbn = {978-3-319-24277-4}, |
200 | | - url = {https://ggplot2.tidyverse.org}, |
201 | | - } |
202 | | - |
203 | | ---- |
204 | | - |
205 | | - Code |
206 | | - toBibtex(a_bib) |
207 | | - Output |
208 | | - @Misc{basic, |
209 | | - title = {manyurls: A lot of urls}, |
210 | | - author = {Marc Basic}, |
211 | | - url = {https://test.github.io/package/}, |
212 | | - abstract = {This package has many urls. Specifically, 1 Bug Reports and 6 URLs. Expected is to have 1 repository-code, 1 url and 3 URLs, since there is 1 duplicate and 1 invalid url.}, |
213 | | - version = {1.0.0}, |
214 | | - } |
215 | | - |
0 commit comments