Skip to content

Just want to show a little script #2

Description

@LydiaF

Hi there,

Thank you for very much for making this plug-in! I hope the problem I have is just because I am not getting something... any help is very much appreciated :)

This is what I have in wordpress:

[datacamp_exercise lang="r"]
  [datacamp_sample_code]
    mylist = list("abc", list("def", "ghi")
    mylist[1]
    mylist[[1]]
    mylist[2]
    mylist[[2]]
  [/datacamp_sample_code]
  [datacamp_pre_exercise_code]
  [/datacamp_pre_exercise_code]
  [datacamp_solution]
  [/datacamp_solution]
  [datacamp_sct]
  [/datacamp_sct]
  [datacamp_hint]
  [/datacamp_hint]
[/datacamp_exercise]

This comes up on the post (although nothing comes up if I use <- as the assignment operator):
image

This is what results after clicking run:
image

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