Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • SUNSET SUNSET
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • SUNSETSUNSET
  • Issues
  • #91
Closed
Open
Issue created Nov 14, 2023 by Paloma Trascasa-Castro@ptrascasDeveloper

Language needs to be specified in lubridate (for plot_skill_metrics)

Hi @vagudets,

Together with @nperez we realised that the language in the function lubridate inside plot_skill_metrics.R needs to be specified, otherwise if R is in Spanish it won't read the months properly. I'm using the workstation.

This is what we needed to add (the locale = "en_GB"):

# Get months
  months <- lubridate::month(Subset(data_cube$attrs$Dates,
                                    "syear", indices = 1),
                             label = T, abb = F,locale = "en_GB")

And this is how we played with the languages until we got it right: Screenshot_from_2023-11-13_18-28-35

I thought it'd be important to take this into account, maybe in some other environments this specification is not needed but it'd be good to add it to the function just in case.

Cheers,

Paloma

Edited Nov 14, 2023 by Paloma Trascasa-Castro
Assignee
Assign to
Time tracking