Increasing (or decreasing) the memory available to R processes

后端 未结 6 1262
你的背包
你的背包 2020-11-22 12:52

I would like to increase (or decrease) the amount of memory available to R. What are the methods for achieving this?

6条回答
  •  忘掉有多难
    2020-11-22 13:46

    To increase the amount of memory allocated to R you can use memory.limit

    memory.limit(size = ...)
    

    Or

    memory.size(max = ...)
    

    About the arguments

    • size - numeric. If NA report the memory limit, otherwise request a new limit, in Mb. Only values of up to 4095 are allowed on 32-bit R builds, but see ‘Details’.
    • max - logical. If TRUE the maximum amount of memory obtained from the OS is reported, if FALSE the amount currently in use, if NA the memory limit.

提交回复
热议问题