Dependencies problem when saving datatable objects
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, r
Research direction
Start by reproducing the issue with datatable(), formatStyle(), datatable_obj$dependencies, and save() using the iris example. Compare the saved object after opening it on another device; done means its DT dependencies no longer require updating device-specific absolute paths.
Written by the indexing model from the issue text.
Description
If I run the following simple code:
library(DT)
library(htmlwidgets)
data <- iris
datatable_obj = datatable(data, options = list(pageLength = 5)) %>%
formatStyle(
'Species',
target = 'row',
backgroundColor = styleEqual(
unique(data$Species),
c('lightblue', 'lightgreen', 'lightpink')
)
)
datatable_obj$dependencies
save(object = datatable_obj,file = "datatable.RData")
Then I pass and open the RDS object from another device, it seems that absolute path dependencies of the library DT of the first device are saved in datatable_obj (datatable_obj$dependencies), which not correspond to the absolute path of the DT library of the second device.
We suggest to using parametric and relative path to solve this, in this manner users do not have to update the path every time such objects are opened from different devices.
- Dominant language
- JavaScript
- Stars
- 621
- Forks
- 177
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rstudio/DT
-
Unecessary "Datatables warning" alert when creating a DT with new data and same number of columnsOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Excel like filteringOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
[workshop-sim] Improve: Provide a concrete example and activity checks in agentic intro (step 5)Openfeedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
githubnext/gh-aw-workshop#5715 ·
Maintainers usually reply within 1 day
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jest-community/eslint-plugin-jest#2052 ·
-
check:passed feeds:add
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Wallet functions throws TypeError when the wallet has no account IDPossibly taken @Medhansh-741 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hiero-ledger/hiero-sdk-js#4781 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100