Skip to content

problems with complex/non-standard formulas #577

@bbolker

Description

@bbolker

One-sided formulas, and formulas that deviate from the existing standard for random-effect terms (i.e. containing terms such as cs(f|g), to denote a compound-symmetric covariance matrix), seem to break stuff. (I set the breaking chunks to eval:false so I could render the document ...)

This is with RCall v0.14.9

---
author: Ben Bolker
title: "formula parsing etc."
engine: julia
julia:
  env: [ "LD_LIBRARY_PATH=/usr/local/lib/R/lib"]
---

```{julia}
using RCall
```

```{r}
#| eval: false
form <-  ~ a + b
```

> LoadError: ArgumentError: malformed expression in formula ~(a + b)

```{r}
#| eval: false
form <- y ~ a + b + cs(f | g)
```

> UndefVarError: `cs` not defined in `RCall`

This one is OK:

```{r}
form <- y ~ a + b + (f | g)
```

quarto check

Quarto 1.7.32
[✓] Checking environment information...
      Quarto cache location: /home/bolker/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.85.1: OK
      Deno version 1.46.3: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.7.32
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/local/texlive/2024/bin/x86_64-linux
      Version: 2024

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /usr/bin/chromium-browser
      Source: PATH

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.3
      Path: /usr/bin/python3
      Jupyter: 5.3.2
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.6.0
      Path: /usr/local/lib/R
      LibPaths:
        - /usr/lib/R/site-library
        - /usr/local/lib/R/library
      knitr: 1.50
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions