Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# The action runs when:
# - A new release is published
# - The DESCRIPTION or inst/CITATION are modified
# - Can be run manually
# For customizing the triggers, visit https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
release:
types: [published]
push:
branches: [master, main]
paths:
- DESCRIPTION
- inst/CITATION
workflow_dispatch:

name: Update CITATION.cff

jobs:
update-citation-cff:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::cffr
any::V8

- name: Update CITATION.cff
run: |

library(cffr)

# Customize with your own code
# See https://docs.ropensci.org/cffr/articles/cffr.html

# Write your own keys
mykeys <- list()

# Create your CITATION.cff file
cff_write(keys = mykeys,
dependencies = FALSE,
validate = TRUE,
authors_roles = c("aut", "cre"))

shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add CITATION.cff
git commit -m 'Update CITATION.cff' || echo "No changes to commit"
git push origin || echo "No changes to commit"



8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: furdeb
Type: Package
Title: FUnctions for R DEvelopment and Beyond!
Version: 1.0.0
Version: 1.0.1
Authors@R:
c(person(given = "Jeanne",
family = "Clément",
Expand Down Expand Up @@ -52,14 +52,14 @@ Imports:
dplyr (>= 1.1.4),
lubridate (>= 1.9.3),
magrittr (>= 2.0.3),
parallel (>= 4.3.1),
parallel (>= 4.2.0),
readr (>= 2.1.5),
RJDBC (>= 0.2.10),
RPostgreSQL (>= 0.7.6),
RPostgres (>= 1.4.7),
sf (>= 1.0.16),
stringr (>= 1.5.1),
tibble (>= 3.2.1),
utils (>= 4.3.1),
utils (>= 4.2.0),
yaml (>= 2.3.8)
Remotes:
OB7-IRD/codama
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# furdeb 1.0.1- 2025.01.21

## Changed
* Use package [RPostgres](https://CRAN.R-project.org/package=RPostgres) instead of [RPostgreSQL](https://CRAN.R-project.org/package=RPostgreSQL) in [`postgresql_db_connection()`](https://ob7-ird.github.io/furdeb/reference/postgresql_dbconnection.html) function to fix connection issues.

# furdeb 1.0.0 - 2024.11.29

## Added
Expand Down
12 changes: 6 additions & 6 deletions R/postgresql_dbconnection.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ postgresql_dbconnection <- function(db_user,
}
# 2 - Global process ----
postgresql_db_connection <- list("database_name" = db_dbname,
"connection_information" = RPostgreSQL::dbConnect(DBI::dbDriver("PostgreSQL"),
user = db_user,
password = db_password,
dbname = db_dbname,
host = db_host,
port = as.integer(x = db_port)))
"connection_information" = RPostgres::dbConnect(DBI::dbDriver("Postgres"),
user = db_user,
password = db_password,
dbname = db_dbname,
host = db_host,
port = as.integer(x = db_port)))
return(postgresql_db_connection)
}
2 changes: 1 addition & 1 deletion furdeb.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ StripTrailingWhitespace: Yes
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageCheckArgs: --no-multiarch
PackageCheckArgs: --no-multiarch --as-cran
PackageRoxygenize: rd,collate,namespace,vignette
Loading