htanderson / ITSbin

An R package for working with LENA ITS files at flexible timescales.
https://htanderson.github.io/ITSbin/
Other
4 stars 1 forks source link

data.table version issue #1

Open JohnFranchak opened 1 year ago

JohnFranchak commented 1 year ago

I found that updating data.table led to ITSBin functions no longer working. For example,

> check_multiday(
+   ITS.dir = "lena",
+   CSV.dir = "output",
+   time.zone = "America/Los_Angeles")
Error in .rbind.data.table(validation.allfiles, validation, fill = TRUE) : 
  could not find function ".rbind.data.table"

It seems to be resolved by installing an older version of data.table, such as by the following:

devtools::install_version("data.table", version = "1.13.6", repos = "http://cran.us.r-project.org")

I don't understand the code well enough to suggest a permanent fix in ITSBin, but this works for now!

htanderson commented 1 year ago

Hi John,

Thanks for letting me know! This is added to my to-fix list. I haven't updated R on my machine in a while (just don't want to deal with the time to update code for my nearly-finished papers), so I'm not surprised. I'm glad your fix worked. Please let me know if this needs more work urgently.

Regards, Heather


Heather Anderson, M.S. Ph.D. Candidate, Learning Lab University of Oregon @.**@.>

From: John Franchak @.> Sent: Thursday, March 23, 2023 8:53 PM To: htanderson/ITSbin @.> Cc: Subscribed @.***> Subject: [htanderson/ITSbin] data.table version issue (Issue #1)

I found that updating data.table led to ITSBin functions no longer working. For example,

check_multiday(

Error in .rbind.data.table(validation.allfiles, validation, fill = TRUE) :

could not find function ".rbind.data.table"

It seems to be resolved by installing an older version of data.table, such as by the following:

devtools::install_version("data.table", version = "1.13.6", repos = "http://cran.us.r-project.org")

I don't understand the code well enough to suggest a permanent fix in ITSBin, but this works for now!

- Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhtanderson%2FITSbin%2Fissues%2F1&data=05%7C01%7C%7C7b20b1cc90a14ca7a0b908db2c1b4013%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638152267771181899%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=loTUO4vyOuhxah0%2FdQAsgEmxS3GEliU%2BlxeA3qj2E6E%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABZWT4KNQGCX3X4VB7H3IGDW5ULBPANCNFSM6AAAAAAWGBNFNU&data=05%7C01%7C%7C7b20b1cc90a14ca7a0b908db2c1b4013%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638152267771181899%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=S37bhEpMjDV%2BkPvHnzl%2BbvRG5YmtwSj7BZl5TiXbaRE%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

JohnFranchak commented 1 year ago

Sure thing! I guess I should be more careful about updating R packages. It’s nothing urgent for me — once I installed the older data.table it was working as expected…just not a long-term solution (and might scare off any new users who try to run it).

John Franchak (he/him) Associate Professor Department of Psychology University of California, Riverside Associate Editor, Developmental Psychology @. https://padlab.ucr.edu On Mar 30, 2023, 2:31 PM -0700, Heather Anderson @.>, wrote:

Hi John,

Thanks for letting me know! This is added to my to-fix list. I haven't updated R on my machine in a while (just don't want to deal with the time to update code for my nearly-finished papers), so I'm not surprised. I'm glad your fix worked. Please let me know if this needs more work urgently.

Regards, Heather


Heather Anderson, M.S. Ph.D. Candidate, Learning Lab University of Oregon @.**@.>

From: John Franchak @.> Sent: Thursday, March 23, 2023 8:53 PM To: htanderson/ITSbin @.> Cc: Subscribed @.***> Subject: [htanderson/ITSbin] data.table version issue (Issue #1)

I found that updating data.table led to ITSBin functions no longer working. For example,

check_multiday(

  • ITS.dir = "lena",

  • CSV.dir = "output",

  • time.zone = "America/Los_Angeles")

Error in .rbind.data.table(validation.allfiles, validation, fill = TRUE) :

could not find function ".rbind.data.table"

It seems to be resolved by installing an older version of data.table, such as by the following:

devtools::install_version("data.table", version = "1.13.6", repos = "http://cran.us.r-project.org")

I don't understand the code well enough to suggest a permanent fix in ITSBin, but this works for now!

- Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhtanderson%2FITSbin%2Fissues%2F1&data=05%7C01%7C%7C7b20b1cc90a14ca7a0b908db2c1b4013%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638152267771181899%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=loTUO4vyOuhxah0%2FdQAsgEmxS3GEliU%2BlxeA3qj2E6E%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABZWT4KNQGCX3X4VB7H3IGDW5ULBPANCNFSM6AAAAAAWGBNFNU&data=05%7C01%7C%7C7b20b1cc90a14ca7a0b908db2c1b4013%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638152267771181899%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=S37bhEpMjDV%2BkPvHnzl%2BbvRG5YmtwSj7BZl5TiXbaRE%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>> — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

htanderson commented 1 year ago

Oh yeah, I'm definitely going to fix it. It's just going to take at least a few weeks before I can start on it, so I wanted to make sure it wasn't urgent for you.

Thanks, Heather

From: John Franchak @.> Sent: Thursday, March 30, 2023 3:36 PM To: htanderson/ITSbin @.> Cc: Heather Anderson @.>; Comment @.> Subject: Re: [htanderson/ITSbin] data.table version issue (Issue #1)

Sure thing! I guess I should be more careful about updating R packages. It's nothing urgent for me - once I installed the older data.table it was working as expected...just not a long-term solution (and might scare off any new users who try to run it).

John Franchak (he/him) Associate Professor Department of Psychology University of California, Riverside Associate Editor, Developmental Psychology @.<mailto:@.> https://padlab.ucr.edu On Mar 30, 2023, 2:31 PM -0700, Heather Anderson @.<mailto:@.>>, wrote:

Hi John,

Thanks for letting me know! This is added to my to-fix list. I haven't updated R on my machine in a while (just don't want to deal with the time to update code for my nearly-finished papers), so I'm not surprised. I'm glad your fix worked. Please let me know if this needs more work urgently.

Regards, Heather


Heather Anderson, M.S. Ph.D. Candidate, Learning Lab University of Oregon @.**@.mailto:***@***.******@***.***>

From: John Franchak @.<mailto:@.>> Sent: Thursday, March 23, 2023 8:53 PM To: htanderson/ITSbin @.<mailto:@.>> Cc: Subscribed @.<mailto:@.>> Subject: [htanderson/ITSbin] data.table version issue (Issue #1)

I found that updating data.table led to ITSBin functions no longer working. For example,

check_multiday(

  • ITS.dir = "lena",

  • CSV.dir = "output",

  • time.zone = "America/Los_Angeles")

Error in .rbind.data.table(validation.allfiles, validation, fill = TRUE) :

could not find function ".rbind.data.table"

It seems to be resolved by installing an older version of data.table, such as by the following:

devtools::install_version("data.table", version = "1.13.6", repos = "http://cran.us.r-project.org")

I don't understand the code well enough to suggest a permanent fix in ITSBin, but this works for now!

- Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhtanderson%2FITSbin%2Fissues%2F1&data=05%7C01%7C%7C7b20b1cc90a14ca7a0b908db2c1b4013%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638152267771181899%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=loTUO4vyOuhxah0%2FdQAsgEmxS3GEliU%2BlxeA3qj2E6E%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABZWT4KNQGCX3X4VB7H3IGDW5ULBPANCNFSM6AAAAAAWGBNFNU&data=05%7C01%7C%7C7b20b1cc90a14ca7a0b908db2c1b4013%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638152267771181899%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=S37bhEpMjDV%2BkPvHnzl%2BbvRG5YmtwSj7BZl5TiXbaRE%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.**@.mailto:***@***.******@***.***>>

Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.<mailto:@.>>

- Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhtanderson%2FITSbin%2Fissues%2F1%23issuecomment-1491053497&data=05%7C01%7C%7C5fc0c0053a4745a4f0c408db316f299b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638158125726829170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mIPsG9FEYM7hMAuw0bz%2FqRb7bUOgLGxIS14Xu8NBYP4%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABZWT4NNGE2XSIXYQ466KK3W6YDFVANCNFSM6AAAAAAWGBNFNU&data=05%7C01%7C%7C5fc0c0053a4745a4f0c408db316f299b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638158125726829170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tMce2WCFP3BwHRWa%2BYKazYpixb%2FaRTwyv0e8ALG41as%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>