convertendo arquivo json em arquivo R / texto sem execução

O Rstudio travou enquanto trabalhava e os arquivos não salvos não puderam ser carregados na sessão. Mas os arquivos estão disponíveis no formato JSON. Um exemplo,

{
    "contents" : "library(hgu133a.db)\nx <- hgu133aENSEMBL\nx\nlength(x)\ncount.mappedkeys(x)\nx[1:3]\nlinks(x[1:3])\n\n## Keep only the mapped keys\nkeys(x) <- mappedkeys(x)\nlength(x)\ncount.mappedkeys(x)\nx # now it is a submap\n\n## The above subsetting can also be achieved with\nx <- hgu133aENSEMBL[mappedkeys(hgu133aENSEMBL)]\n\n",
    "created" : 1463131195093.000,
    "dirty" : true,
    "encoding" : "",
    "folds" : "",
    "hash" : "1482602869",
    "id" : "737C178C",
    "lastKnownWriteTime" : 0,
    "path" : null,
    "project_path" : null,
    "properties" : {
        "tempName" : "Untitled3"
    },
    "source_on_save" : false,
    "type" : "r_source"
}

Os arquivos no formato JSON podem ser lidos usando ojsonlite::fromJSON e as informações necessárias foram armazenadas na variável content. Quando tentou ler os comandos usando oreadLines() ouscan() os comandos estavam sendo executados em vez de convertê-los em um arquivo simples. Como converter isso em umr Arquivo ?

output (?): comando em umr arquivo de script / texto.

library(hgu133a.db)
x <- hgu133aENSEMBL
x
length(x)
count.mappedkeys(x)
x[1:3]
links(x[1:3])

## Keep only the mapped keys
keys(x) <- mappedkeys(x)
length(x)
count.mappedkeys(x)
x 
# now it is a submap

## The above subsetting can also be achieved with
x <- hgu133aENSEMBL[mappedkeys(hgu133aENSEMBL)]

questionAnswers(1)

yourAnswerToTheQuestion