Skip to content

Commit 5069852

Browse files
authored
Merge pull request #180 from UA-Libraries-Research-Data-Services/fix-casc-r-images
fix: Correct formatting of images in CAS R recipe
2 parents 1c6d9b1 + 54b5733 commit 5069852

3 files changed

Lines changed: 7 additions & 18 deletions

File tree

rmarkdown/casc.Rmd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,10 @@ We now have a list of sub-lists of data corresponding to the CAS RNs.
182182
imgs <- lapply(list, function(x) {charToRaw(x$image)})
183183
184184
# Use 'image_read()' to read SVGs
185-
186-
# "Ethyl cyclohexanepropionate"
187185
image_read(imgs[[1]], density = 300)
188-
# "Ethyl 2-nonynoate"
189186
image_read(imgs[[2]], density = 300)
190-
# "Ethyl 1<em>H</em>-pyrazole-1-acetate"
191187
image_read(imgs[[3]], density = 300)
192-
# "Ethyl 3-(ethoxycarbonyl)benzenepropanoate"
193188
image_read(imgs[[4]], density = 300)
194-
# "Ethyl 1-cyclohexene-1-carboximidate"
195189
image_read(imgs[[5]], density = 300)
196190
```
197191

src/overview/openalex.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ OpenAlex
44
Brief Overview
55
****************
66

7-
The OpenAlex API is an open catalog of the global research system created by the nonprofit OurResearch [#oa1]_ . An API key is not required for this API, but providing your email in requests will provide faster and more consistent response times. Users are required to follow the rate limits of 100000 requests per user per day and 10 requests per second.
7+
The OpenAlex API is an open catalog of the global research system. An API key is required for this API. Please see Authentication & Pricing page [#oa1]_ in the OpenAlex API documentation for instructions on how to obtain one.
88

9-
See the OpenAlex API documentation [#oa2]_ for more information on accessing the API. Note that the data in the API is licensed under the Creative Commons CC0 license [#oa3]_ , designating it as part of the public domain. See the OpenAlex Terms of Service [#oa4]_ for more information on how you can use this API.
9+
See the OpenAlex API documentation [#oa1]_ for more information on accessing the API. Note that the data in the API is licensed under the Creative Commons CC0 license [#oa3]_ , designating it as part of the public domain. See the OpenAlex Terms of Service [#oa4]_ for more information on how you can use this API.
1010

1111
.. rubric:: References
1212

13-
.. [#oa1] `<https://ourresearch.org/>`_
13+
.. [#oa1] `<https://developers.openalex.org/guides/authentication>`_
1414
1515
.. [#oa2] `<https://developers.openalex.org/>`_
1616

src/r/casc.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -340,39 +340,34 @@ imgs <- lapply(list, function(x) {charToRaw(x$image)})
340340

341341
# Use 'image_read()' to read SVGs
342342

343-
# "Ethyl cyclohexanepropionate"
344343
image_read(imgs[[1]], density = 300)
345344
```
346345

347346
![](_figures/casc/molecule-loop-1.png)<!-- -->
348347

349348
``` r
350-
# "Ethyl 2-nonynoate"
351349
image_read(imgs[[2]], density = 300)
352350
```
353351

354-
![](_figures/casc/molecule-loop-1.png)<!-- -->
352+
![](_figures/casc/molecule-loop-2.png)<!-- -->
355353

356354
``` r
357-
# "Ethyl 1<em>H</em>-pyrazole-1-acetate"
358355
image_read(imgs[[3]], density = 300)
359356
```
360357

361-
![](_figures/casc/molecule-loop-1.png)<!-- -->
358+
![](_figures/casc/molecule-loop-3.png)<!-- -->
362359

363360
``` r
364-
# "Ethyl 3-(ethoxycarbonyl)benzenepropanoate"
365361
image_read(imgs[[4]], density = 300)
366362
```
367363

368-
![](_figures/casc/molecule-loop-1.png)<!-- -->
364+
![](_figures/casc/molecule-loop-4.png)<!-- -->
369365

370366
``` r
371-
# "Ethyl 1-cyclohexene-1-carboximidate"
372367
image_read(imgs[[5]], density = 300)
373368
```
374369

375-
![](_figures/casc/molecule-loop-1.png)<!-- -->
370+
![](_figures/casc/molecule-loop-5.png)<!-- -->
376371

377372
### Select Specific Data
378373

0 commit comments

Comments
 (0)