Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data date not being read correctly via here_data() #42

Closed
MelissaAssel opened this issue Jul 29, 2021 · 0 comments · Fixed by #43
Closed

data date not being read correctly via here_data() #42

MelissaAssel opened this issue Jul 29, 2021 · 0 comments · Fixed by #43

Comments

@MelissaAssel
Copy link

data_date needs an added return line added to avoid the below error

example code for importing excel file

df_raw_data <-

  • readxl::read_excel(
  • path = here_data("JRSC_MaxPAIN_2021-7-26.xlsx")
    
  • ) %>%
  • janitor::clean_names(case = "all_caps") %>% # uppercase col names
  • mutate_if(lubridate::is.POSIXt, lubridate::as_date) # use lubridates
    Error: path must be a string
ddsjoberg added a commit that referenced this issue Jul 29, 2021
ddsjoberg added a commit that referenced this issue Jul 30, 2021
* bug fix #42

* Update here_data.R

* Update renv.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant