Coder Social home page Coder Social logo

Comments (10)

lwjohnst86 avatar lwjohnst86 commented on September 2, 2024 1

I think I fixed some of the issues. See the new way of creating the dataset: https://github.com/steno-aarhus/ukbAid/blob/main/inst/templates/create-data.R

from ukbaid.

lwjohnst86 avatar lwjohnst86 commented on September 2, 2024

Ooo, that same issue again eh. Ok, thanks. If you want to try to update the data-raw script to remove that variable, that would be great!

from ukbaid.

lwjohnst86 avatar lwjohnst86 commented on September 2, 2024

I'll maybe have time to check into the create_csv_from_database() issue tomorrow

from ukbaid.

nielsbock avatar nielsbock commented on September 2, 2024

Could the missing username in the file name be due to conflicts with file_prefix being defined as "data" in builder_table_exporter ?

from ukbaid.

lwjohnst86 avatar lwjohnst86 commented on September 2, 2024

Hmm, I don't think so, since the file_prefix is actually not even used anymore within the function (it probably should be removed).

from ukbaid.

lwjohnst86 avatar lwjohnst86 commented on September 2, 2024

It might actually be something related to the rap_get_user() function though. Hmmm, looking at the code, that might be the problem actually...

from ukbaid.

nielsbock avatar nielsbock commented on September 2, 2024

hmm, rap_get_user() does output username though. I can also see in the table exporter log that the file name with username is preserved up until completion. Maybe the username in the file name is getting mixed up with the username in the path: ~/username/username-data-project_id... would it be worth testing if changing
data_file_name <- glue::glue("{username}-data-{project_id}-{timestamp_now()}")
to
data_file_name <- glue::glue("data-{username}-{project_id}-{timestamp_now()}")
will fix it?

from ukbaid.

nielsbock avatar nielsbock commented on September 2, 2024

Ooo, that same issue again eh. Ok, thanks. If you want to try to update the data-raw script to remove that variable, that would be great!

Unfortunately, I cannot detect the source of the issue. However, I can see that @arborzhang managed to create a test dataset with eid on May 30 12:47 pm. So my guess is that commits made to R/create-date.R or R/rap.R after May 30 may somehow have caused the issue.

from ukbaid.

arborzhang avatar arborzhang commented on September 2, 2024

As I reported earlier, some variables were missing when I loaded the data (data <- arrow::read_parquet("data/data.parquet"). So I tried to create a test dataset. But I only keep the test data in the folder under my name, will it influence others' work? @lwjohnst86 . PS. I am also not allowed to delete the test dataset afterwards.

from ukbaid.

lwjohnst86 avatar lwjohnst86 commented on September 2, 2024

@arborzhang it shouldn't affect others!

from ukbaid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.