datacamp / datacamp-light-wordpress

A WordPress Plugin that allows easy integration of the DataCamp Light interactive learning widget into posts and pages.
GNU General Public License v3.0
17 stars 17 forks source link

Just want to show a little script #2

Open LydiaF opened 6 years ago

LydiaF commented 6 years ago

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

mrchaosbude commented 6 years ago

I think you forgot a ) at the end