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

Allow replacing portions of filearray by a single value #9

Closed
talegari opened this issue Jun 3, 2024 · 2 comments
Closed

Allow replacing portions of filearray by a single value #9

talegari opened this issue Jun 3, 2024 · 2 comments
Assignees

Comments

@talegari
Copy link

talegari commented Jun 3, 2024

Right now,

library("filearray")
file = tempfile()
fa_obj = filearray_create(file, dimension = c(100, 1), type = "double")
fa_obj[1:10, 1] = 1

throws this error (not surprising):

Error in fa_subsetAssign1(x, i, ..., value = value) : 
  SubsetAssign FileArray `value` length mismatch.

Request: I have an usecase where large portions of filearray need to be replaced by a single value. It would be great to allow this exception. Else, I will have create large arrays in memory and then replace it.

@dipterix dipterix self-assigned this Jun 12, 2024
@dipterix
Copy link
Owner

Thanks for this. Let me take a look at what I can do.

dipterix added a commit that referenced this issue Jul 16, 2024
@dipterix
Copy link
Owner

The feature request has been implemented in the dev package. Will be included in the next CRAN release.

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

2 participants