Skip to content

Commit

Permalink
Remove tests that keep messing up builds
Browse files Browse the repository at this point in the history
removes the:
Error: Error: /home/runner/work/jasp-desktop/jasp-desktop/Engine/jaspBase/inst/examples/ex-setOrRetrieve.R:36:2: unexpected symbol
35: result                         # the random number
36: \dontrun
  • Loading branch information
JorisGoosen committed Mar 20, 2024
1 parent 2d7ee4b commit 7bd7444
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inst/examples/ex-setOrRetrieve.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ result <- ctr[["state"]] %setOrRetrieve% (
)

result # the random number
\dontrun{isRecomputed(result)} # intentional error
#\dontrun{isRecomputed(result)} # intentional error
#This is a nice intentional error but renv keeps messing up my builds because of this.
isRecomputed(ctr[["state"]]) # true
isRecomputed() # true

Expand All @@ -48,4 +49,4 @@ isRecomputed() # false

# Note that only works when the left hand side indexes inside a jaspObject
a <- 1
\dontrun{a %setOrRetrieve% 2} # intentional error
#\dontrun{a %setOrRetrieve% 2} # intentional error

0 comments on commit 7bd7444

Please sign in to comment.