Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Aug 7, 2024
1 parent eb7e525 commit 291f0a3
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Install package
run: |
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://cloud.r-project.org"))
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://bioc.r-universe.dev", "https://cloud.r-project.org"))
tima::install()
shell: Rscript {0}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/external-use.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
Ncpus: 2
- name: Install
run: |
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://cloud.r-project.org"))
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://bioc.r-universe.dev", "https://cloud.r-project.org"))
tima::install()
shell: Rscript {0}
- name: Get example files
Expand Down
11 changes: 7 additions & 4 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ install <- function(test = FALSE) {
"tima",
repos = c(
"https://taxonomicallyinformedannotation.r-universe.dev",
"https://bioc.r-universe.dev",
"https://cloud.r-project.org"
),
INSTALL_opts = "--no-lock"
INSTALL_opts = c("--no-test-load")
)
TRUE
},
Expand All @@ -81,18 +82,20 @@ install <- function(test = FALSE) {
}
)

# If URL installation fails, try installing from source
# If installation fails, try installing from source
if (!success || isTRUE(test)) {
success <- tryCatch(
{
message("Retrying install")
message("Retrying install from source")
install.packages(
"tima",
repos = c(
"https://taxonomicallyinformedannotation.r-universe.dev",
"https://bioc.r-universe.dev",
"https://cloud.r-project.org"
),
INSTALL_opts = "--no-lock"
type = "source",
INSTALL_opts = c("--no-test-load")
)
TRUE
},
Expand Down
9 changes: 8 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ Optionally, you may want to add:
As the package is not (yet) available on CRAN, you will need to install with:

``` r
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://cloud.r-project.org"))
install.packages(
"tima",
repos = c(
"https://taxonomicallyinformedannotation.r-universe.dev",
"https://bioc.r-universe.dev",
"https://cloud.r-project.org"
)
)
```

Then, you should be able to install the rest with:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ As the package is not (yet) available on CRAN, you will need to install
with:

``` r
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://cloud.r-project.org"))
install.packages(
"tima",
repos = c(
"https://taxonomicallyinformedannotation.r-universe.dev",
"https://bioc.r-universe.dev",
"https://cloud.r-project.org"
)
)
```

Then, you should be able to install the rest with:
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
"SystemRequirements": null
},
"keywords": ["metaboliteannotation", "chemotaxonomy", "scoringsystem", "naturalproducts", "computationalmetabolomics", "taxonomicdistance", "specializedmetabolome"],
"fileSize": "3162.851KB",
"fileSize": "3163.193KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
9 changes: 8 additions & 1 deletion vignettes/tima.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,14 @@ Each step is detailed in the related [vignettes](https://taxonomicallyinformedan
All coming steps admit you already installed `tima`:

```{r eval=FALSE, include=TRUE}
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://cloud.r-project.org"))
install.packages(
"tima",
repos = c(
"https://taxonomicallyinformedannotation.r-universe.dev",
"https://bioc.r-universe.dev",
"https://cloud.r-project.org"
)
)
tima::install()
tima::get_example_files()
```
Expand Down

0 comments on commit 291f0a3

Please sign in to comment.