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

Error for any command in the package #42

Closed
dkunichoff opened this issue Oct 18, 2019 · 14 comments
Closed

Error for any command in the package #42

dkunichoff opened this issue Oct 18, 2019 · 14 comments

Comments

@dkunichoff
Copy link

I continuously get this error when I try to use expss package in the way described in the Tables with Labels document. The error is as follows:

Error in setalloccol(ans) : could not find function "setalloccol"

This is happening after the "cro" command and others. Even re-installed the package and it still occurs.

@gdemin
Copy link
Owner

gdemin commented Oct 18, 2019

Also try to reinstall 'data.table' package. And, please, provide result of the systemInfo() function.

@Mayday1979
Copy link

I suppose it is a problem with new version of data.table
Error in data.table(x = x, weight = weight) : oggetto "CcopyNamedInList" not found
This is happening after the "fre" command and others

I tried to reinstall both expss and data.table with no results

@gdemin
Copy link
Owner

gdemin commented Oct 23, 2019

@Mayday1979 Could you provide result of your sessionInfo()?

@Mayday1979
Copy link

@Mayday1979 Could you provide result of your sessionInfo()?

sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] it_IT.UTF-8/it_IT.UTF-8/it_IT.UTF-8/C/it_IT.UTF-8/it_IT.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_3.6.1

@gdemin
Copy link
Owner

gdemin commented Oct 25, 2019

@gdemin
Copy link
Owner

gdemin commented Oct 28, 2019

@Mayday1979 If you still experience problems, please, run the following:

require(data.table)
test.data.table()

What output it gives?

@Mayday1979
Copy link

Mayday1979 commented Oct 28, 2019 via email

@mattdowle
Copy link

mattdowle commented Oct 28, 2019

@Mayday1979 Thanks but it looks like you've excluded the messages we need from the output. Scroll up and you should see messages for tests 1936.2, 2042.2 and 2042.3. We need to see that output please. I looked at the source of those tests and my guess is that's probably just a benign time zone difference, though. It should pass and I need to look at that, but it's unrelated to the could not find setalloccol error. That's either a corrupt installation, or another package has somehow cached the old version, or something like that. Try searching your file system for datatable.dll and looking for multiple and conflicting versions, check your library path etc, and ask the Shiny people if they know anything about cro (my guess is that stands for cached r objects, and that cache needs to be refreshed).

@josie-athens
Copy link

I confirm I get the same error after updating expss.

I tried reinstalling data.table and expss. I did that twice, the second time after reboot.

Information is as follows:

library(expss)
data(mtcars)
mtcars = modify(mtcars,{

  • var_lab(vs) = "Engine"
    
  • val_lab(vs) = c("V-engine" = 0, 
    
  •                 "Straight engine" = 1) 
    
  • var_lab(am) = "Transmission"
    
  • val_lab(am) = c(automatic = 0, 
    
  •                 manual=1)
    
  • })

fre(mtcars$vs)
Error in data.table(x = x, weight = weight) :
object 'CcopyNamedInList' not found
sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15

Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_NZ.UTF-8/en_NZ.UTF-8/en_NZ.UTF-8/C/en_NZ.UTF-8/en_NZ.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] expss_0.9.1

loaded via a namespace (and not attached):
[1] Rcpp_1.0.2 matrixStats_0.55.0 digest_0.6.22
[4] backports_1.1.5 magrittr_1.5 stringi_1.4.3
[7] rlang_0.4.1 data.table_1.12.6 rstudioapi_0.10
[10] checkmate_1.9.4 tools_3.6.1 stringr_1.4.0
[13] foreign_0.8-72 htmlwidgets_1.5.1 xfun_0.10
[16] compiler_3.6.1 htmltools_0.4.0 knitr_1.25
[19] htmlTable_1.13.2

require(data.table)
Loading required package: data.table
data.table 1.12.6 using 4 threads (see ?getDTthreads). Latest news: r-datatable.com

Attaching package: ‘data.table’

The following objects are masked from ‘package:expss’:

copy, data.table, like, setkeyv

test.data.table()
getDTthreads(verbose=TRUE):
omp_get_num_procs() 8
R_DATATABLE_NUM_PROCS_PERCENT unset (default 50)
R_DATATABLE_NUM_THREADS unset
omp_get_thread_limit() 2147483647
omp_get_max_threads() 8
OMP_THREAD_LIMIT unset
OMP_NUM_THREADS unset
RestoreAfterFork true
data.table is using 4 threads. See ?setDTthreads.
test.data.table() running: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/data.table/tests/tests.Rraw.bz2
Running test id 2120.08 nning test id 1987.1 Running test id 1748.3 Running test id 1748.4 Running test id 1749.1
10 longest running tests took 15s (42% of 36s)
ID time nTest
1: 1729 5.086 13
2: 1888 1.964 9
3: 1874 1.632 5
4: 1223 1.355 728
5: 1252 1.040 484
6: 1438 0.940 354
7: 1848 0.937 1
8: 1437 0.936 36
9: 1912 0.869 2
10: 1648 0.590 45
Error in test.data.table() :
6 errors out of 8747 in 36.5s elapsed (00:01:48 cpu) on Fri Nov 1 11:12:49 2019. [endian==little, sizeof(long double)==16, sizeof(pointer)==8, TZ=Pacific/Auckland, locale='en_NZ.UTF-8/en_NZ.UTF-8/en_NZ.UTF-8/C/en_NZ.UTF-8/en_NZ.UTF-8', l10n_info()='MBCS=TRUE; UTF-8=TRUE; Latin-1=FALSE', getDTthreads()='omp_get_num_procs()==8; R_DATATABLE_NUM_PROCS_PERCENT==unset (default 50); R_DATATABLE_NUM_THREADS==unset; omp_get_thread_limit()==2147483647; omp_get_max_threads()==8; OMP_THREAD_LIMIT==unset; OMP_NUM_THREADS==unset; RestoreAfterFork==true; data.table is using 4 threads. See ?setDTthreads.']. Search tests/tests.Rraw.bz2 for test numbers: 1748.1, 1748.2, 1748.3, 1748.4, 1986.2, 1986.4.

Please help with removing that error. You are doing a great job.

@gdemin
Copy link
Owner

gdemin commented Nov 1, 2019

@mattdowle Could you look at the output of the test.data.table?

@Mayday1979
Copy link

Mayday1979 commented Nov 3, 2019 via email

@gdemin
Copy link
Owner

gdemin commented Nov 3, 2019

@Mayday1979
Do you have installed XCode?
If yes, could you install both packages from source?

install.packages(c("data.table", "expss"), type = "source")

Or, I think, without Xcode it is possible to install from source expss:

install.packages("expss", type = "source")

@josie-athens
Copy link

Yes! That worked, installing both packages from source.

Just to be clear for future reference, what I did was:

  1. Access R from bash terminal.
  2. Remove data.table and expss
  3. Install data.table and expss from source

My first mistake, again for future reference, was updating for expss while expss was already loaded into the session.

Thank you!

@Mayday1979
Copy link

Mayday1979 commented Nov 4, 2019 via email

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

No branches or pull requests

5 participants