CDC-DNPAO / CDCAnthro

10 stars 6 forks source link

Error in ':=' seq_, seq_len(.N)) #7

Closed tormodb closed 6 months ago

tormodb commented 8 months ago

Hi, thanks for this package! I am having some troubles and get error messages:

Error in ':=' seq_, seq_len(.N)). : Check that is.data.table(DT) == TRUE. Otherwise, := and ':='(...) are defined for use in j, once only and in particular ways. See help(":=")

I have tried to use help, but have not found a workaround. Can you help?

CDC-DNPAO commented 8 months ago

This is odd: ':=' is a basic part of data.table and shouldn't cause a problem. A few things to check:

(1) Can you run the examples without a problem? (2) Can you make sure that the data.table package is loaded with a sessionInfo() command? (3) Make sure that you don't have 'seq_' in your workspace using ls() (4) Try making your data into a data.table before using the function: data = as.data.table(data). I assume that your data is a data frame; is this correct? (5) Can you run the examples at ?':='?

If all these things look OK, I'd try to reinstall the package. If all of this doesn't help, I'd be happy to run a small sample of your data on my computer. Are you using a Mac, Windows, or Linux?

CDC-DNPAO commented 7 months ago

Tormodb - did you ever resolve the problem you were having? I'm happy to help - just let me know.

tormodb commented 7 months ago

Hi, David, I am really sorry but I managed to solve this problem using a different package. I am sure the problem is on my end, we use a manged safe server with no internet connectivity so there is a very high likelihood that something is not set up correctly by our department. Apologies for not getting back to you, and I really appreciate that you followed up on this.

All the best, Tormod

  1. apr. 2024 kl. 20:19 skrev David Freedman @.***>:

Tormodb - did you ever resolve the problem you were having? I'm happy to help - just let me know.

— Reply to this email directly, view it on GitHub https://github.com/CDC-DNPAO/CDCAnthro/issues/7#issuecomment-2041158299, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD47LYPBEEZEV3UBQ242YTY4A4DJAVCNFSM6AAAAABEBWCXL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGE2TQMRZHE. You are receiving this because you authored the thread.

CDC-DNPAO commented 7 months ago

Tormod - thanks for the information - glad you solved the problem. We (CDC) had a (possibly) similar problem with a package - the package worked on my home PC under windows, ubuntu, and macOS. But it wouldn't run on a Windows computer at CDC.

david

On Tue, Apr 9, 2024 at 3:20 AM Tormod Bøe @.***> wrote:

Hi, David, I am really sorry but I managed to solve this problem using a different package. I am sure the problem is on my end, we use a manged safe server with no internet connectivity so there is a very high likelihood that something is not set up correctly by our department. Apologies for not getting back to you, and I really appreciate that you followed up on this.

All the best, Tormod

  1. apr. 2024 kl. 20:19 skrev David Freedman @.***>:

Tormodb - did you ever resolve the problem you were having? I'm happy to help - just let me know.

— Reply to this email directly, view it on GitHub < https://github.com/CDC-DNPAO/CDCAnthro/issues/7#issuecomment-2041158299>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABD47LYPBEEZEV3UBQ242YTY4A4DJAVCNFSM6AAAAABEBWCXL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGE2TQMRZHE>.

You are receiving this because you authored the thread.

— Reply to this email directly, view it on GitHub https://github.com/CDC-DNPAO/CDCAnthro/issues/7#issuecomment-2044305616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY2XGPXLFCOISVCDCXRSXMLY4OJELAVCNFSM6AAAAABEBWCXL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGMYDKNRRGY . You are receiving this because you commented.Message ID: @.***>