Skip to content

Commit

Permalink
chores: preparing for major release [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
c1au6i0 committed Jan 2, 2025
1 parent 1cb057e commit 1d83b5b
Show file tree
Hide file tree
Showing 29 changed files with 16,235 additions and 12,760 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- For all functions except `extr_comptox`, a `query` column reports the IDs
searched. In `extr_comptox`, this info is in the `main_sheet` element. For
`extr_ice`, `query` values contain all IDs found.
- Results now contain rows with NA values for all columns except `query`.
- Results now contain rows with NA values for all columns (except `query`).
- `extr_pprtv` and `extr_monograph` use `save_and_match` to output results
with NA for missing IDs.
* Improved and extended all unit tests.
Expand Down
24 changes: 15 additions & 9 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ exposure-related data.
```{r}
library(extractox)
# assays is null so all assays are retrieved
ice_data <- extr_ice(casrn = c("50-00-0"), assays = NULL, verbose = FALSE)
ice_data <- extr_ice(casrn = c("50-00-0"), assays = NULL, verbose = FALSE)
names(ice_data)
```

Expand Down Expand Up @@ -147,15 +147,18 @@ The function `extr_monograph` provides access to the WHO IARC Monographs databas
and accepts queries using CASRN or the names of chemicals.

```{r}
dat <- extr_monograph(search_type = "casrn",
ids = c("105-74-8", "120-58-1"),
verbose = FALSE)
dat <- extr_monograph(
search_type = "casrn",
ids = c("105-74-8", "120-58-1"),
verbose = FALSE
)
str(dat)
# Example usage for name search
dat2 <- extr_monograph(search_type = "name",
ids = c("Aloe", "Schistosoma", "Styrene")
)
dat2 <- extr_monograph(
search_type = "name",
ids = c("Aloe", "Schistosoma", "Styrene")
)
```


Expand All @@ -173,8 +176,10 @@ The function `extr_chem_info` retrieves chemical information of IUPAC-named
chemicals. A warning is displayed if the chemical is not found.

```{r}
chem_info <- extr_chem_info(iupac_names = c("Formaldehyde", "Aflatoxin B1"),
verbose = FALSE)
chem_info <- extr_chem_info(
iupac_names = c("Formaldehyde", "Aflatoxin B1"),
verbose = FALSE
)
names(chem_info)
```

Expand Down Expand Up @@ -222,6 +227,7 @@ ctd_association <- extr_ctd(
verbose = FALSE
)
names(ctd_association)
# Get expresssion data
ctd_expression <- extr_ctd(
Expand Down
Loading

0 comments on commit 1d83b5b

Please sign in to comment.