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

charm() and data.table not compatible? #12

Open
Paw1173 opened this issue Nov 12, 2024 · 1 comment
Open

charm() and data.table not compatible? #12

Paw1173 opened this issue Nov 12, 2024 · 1 comment

Comments

@Paw1173
Copy link

Paw1173 commented Nov 12, 2024

Hello, I seem to run into a problem when using data.table structures in a html markdown document and then encrypting it with charm(). Encrypting it directly with output: fidelius::html_password_protected works for the same content.
Example 1 (direct method, no error):

title: Fidelius and Data.table Test
output: fidelius::html_password_protected

library(data.table)
cars.DT <- as.data.table(cars)
summary(cars.DT[dist > 30, dist])

Example 2 (file test.Rmd):

title: Fidelius and Data.table Test
output: html_document

library(data.table)
cars.DT <- as.data.table(cars)
summary(cars.DT[dist > 30, dist])

When I then run charm(test.Rmd), I get an error message
"Error in x[j]:
! invalid subscript type 'closure'"

Any ideas what causes this behaviour? Thanks.

@Paw1173
Copy link
Author

Paw1173 commented Nov 12, 2024

Apologies, copying in the code lead to some of it being used for formatting the post. All code and headers were in .Rmd files.

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

1 participant