GET https://rct.dev.bbntimes.com/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know

ArticleController :: show

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_controller
"App\Controller\ArticleController::show"
_firewall_context
"security.firewall.map.context.main"
_links
Symfony\Component\WebLink\GenericLinkProvider {#3739
  -links: [
    3860 => Symfony\Component\WebLink\Link {#3860
      -href: "/build/runtime.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3858 => Symfony\Component\WebLink\Link {#3858
      -href: "/build/644.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3857 => Symfony\Component\WebLink\Link {#3857
      -href: "/build/502.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3856 => Symfony\Component\WebLink\Link {#3856
      -href: "/build/app.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3855 => Symfony\Component\WebLink\Link {#3855
      -href: "/build/view-more.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3854 => Symfony\Component\WebLink\Link {#3854
      -href: "/build/term-condition.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3853 => Symfony\Component\WebLink\Link {#3853
      -href: "/build/contact.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3852 => Symfony\Component\WebLink\Link {#3852
      -href: "/build/scroll-infinite-article.js"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "script"
      ]
    }
    3851 => Symfony\Component\WebLink\Link {#3851
      -href: "/build/app.css"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "style"
      ]
    }
    3850 => Symfony\Component\WebLink\Link {#3850
      -href: "/build/cookie-style.css"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "style"
      ]
    }
    3849 => Symfony\Component\WebLink\Link {#3849
      -href: "/build/term-condition-css.css"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "style"
      ]
    }
    3848 => Symfony\Component\WebLink\Link {#3848
      -href: "/build/contact-css.css"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "style"
      ]
    }
    3847 => Symfony\Component\WebLink\Link {#3847
      -href: "/build/comment-css.css"
      -rel: [
        "preload" => "preload"
      ]
      -attributes: [
        "as" => "style"
      ]
    }
  ]
}
_route
"article_show"
_route_params
[
  "category" => "technology"
  "slug" => "using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
]
_security_firewall_run
"_security_main"
_stopwatch_token
"66b6a0"
category
"technology"
slug
"using-r-for-the-very-first-time-here-is-everything-you-need-to-know"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br, zstd, deflate"
connection
"close"
cookie
"PHPSESSID=7pvn5l347f4s1u325i5ertiu4o"
host
"rct.dev.bbntimes.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"text/html; charset=UTF-8"
date
"Wed, 16 Apr 2025 01:17:31 GMT"
link
"</build/runtime.js>; rel="preload"; as="script",</build/644.js>; rel="preload"; as="script",</build/502.js>; rel="preload"; as="script",</build/app.js>; rel="preload"; as="script",</build/view-more.js>; rel="preload"; as="script",</build/term-condition.js>; rel="preload"; as="script",</build/contact.js>; rel="preload"; as="script",</build/scroll-infinite-article.js>; rel="preload"; as="script",</build/app.css>; rel="preload"; as="style",</build/cookie-style.css>; rel="preload"; as="style",</build/term-condition-css.css>; rel="preload"; as="style",</build/contact-css.css>; rel="preload"; as="style",</build/comment-css.css>; rel="preload"; as="style""
x-debug-token
"38f812"

Cookies

Request Cookies

Key Value
PHPSESSID
"7pvn5l347f4s1u325i5ertiu4o"

Response Cookies

No response cookies

Session 6

Session Metadata

Key Value
Created
"Wed, 16 Apr 25 01:17:05 +0000"
Last used
"Wed, 16 Apr 25 01:17:29 +0000"
Lifetime
0

Session Attributes

Attribute Value
_csrf/https-comment
"M9BvlvLh7xVWtmICJq7tN-YVPdEEhonQW_dX2_eplzk"
_csrf/https-cookie_accept
"szI_fIoXYrzhKJFQcN9R1_CZ67nsT0tUAeVgCv5I1_Y"

Session Usage

6 Usages
Stateless check enabled
Usage
Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage:76
[
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/TokenStorage/SessionTokenStorage.php"
    "line" => 76
    "function" => "start"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/CsrfTokenManager.php"
    "line" => 69
    "function" => "hasToken"
    "class" => "Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/Csrf/Type/FormTypeCsrfExtension.php"
    "line" => 82
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Csrf\CsrfTokenManager"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 134
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 128
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Form.php"
    "line" => 908
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/src/Controller/ArticleController.php"
    "line" => 220
    "function" => "createView"
    "class" => "Symfony\Component\Form\Form"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 181
    "function" => "show"
    "class" => "App\Controller\ArticleController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage:79
[
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/TokenStorage/SessionTokenStorage.php"
    "line" => 79
    "function" => "has"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/CsrfTokenManager.php"
    "line" => 69
    "function" => "hasToken"
    "class" => "Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/Csrf/Type/FormTypeCsrfExtension.php"
    "line" => 82
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Csrf\CsrfTokenManager"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 134
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 128
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Form.php"
    "line" => 908
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/src/Controller/ArticleController.php"
    "line" => 220
    "function" => "createView"
    "class" => "Symfony\Component\Form\Form"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 181
    "function" => "show"
    "class" => "App\Controller\ArticleController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage:52
[
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/TokenStorage/SessionTokenStorage.php"
    "line" => 52
    "function" => "has"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/CsrfTokenManager.php"
    "line" => 70
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/Csrf/Type/FormTypeCsrfExtension.php"
    "line" => 82
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Csrf\CsrfTokenManager"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 134
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 128
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Form.php"
    "line" => 908
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/src/Controller/ArticleController.php"
    "line" => 220
    "function" => "createView"
    "class" => "Symfony\Component\Form\Form"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 181
    "function" => "show"
    "class" => "App\Controller\ArticleController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage:56
[
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/TokenStorage/SessionTokenStorage.php"
    "line" => 56
    "function" => "get"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-csrf/CsrfTokenManager.php"
    "line" => 70
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/Csrf/Type/FormTypeCsrfExtension.php"
    "line" => 82
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Csrf\CsrfTokenManager"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 134
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/ResolvedFormType.php"
    "line" => 128
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php"
    "line" => 95
    "function" => "finishView"
    "class" => "Symfony\Component\Form\ResolvedFormType"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/form/Form.php"
    "line" => 908
    "function" => "finishView"
    "class" => "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/src/Controller/ArticleController.php"
    "line" => 220
    "function" => "createView"
    "class" => "Symfony\Component\Form\Form"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 181
    "function" => "show"
    "class" => "App\Controller\ArticleController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:41
[
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php"
    "line" => 41
    "function" => "getMetadataBag"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/twig-bridge/AppVariable.php"
    "line" => 103
    "function" => "getToken"
    "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Extension/CoreExtension.php"
    "line" => 1635
    "function" => "getUser"
    "class" => "Symfony\Bridge\Twig\AppVariable"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/var/cache/dev/twig/a4/a456f2f504a18cd81037fa69e543310c.php"
    "line" => 200
    "function" => "twig_get_attribute"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 394
    "function" => "doDisplay"
    "class" => "__TwigTemplate_824a013e4f3f4a68e03a2d244e765025"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 367
    "function" => "displayWithErrorHandling"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 379
    "function" => "display"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/TemplateWrapper.php"
    "line" => 38
    "function" => "render"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Environment.php"
    "line" => 280
    "function" => "render"
    "class" => "Twig\TemplateWrapper"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 448
    "function" => "render"
    "class" => "Twig\Environment"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 453
    "function" => "doRenderView"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 253
    "function" => "doRender"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/src/Controller/AppController.php"
    "line" => 126
    "function" => "render"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 181
    "function" => "renderHeader"
    "class" => "App\Controller\AppController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php"
    "line" => 86
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Fragment/InlineFragmentRenderer.php"
    "line" => 78
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpCache\SubRequestHandler"
    "type" => "::"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Fragment/FragmentHandler.php"
    "line" => 83
    "function" => "render"
    "class" => "Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/DependencyInjection/LazyLoadingFragmentHandler.php"
    "line" => 47
    "function" => "render"
    "class" => "Symfony\Component\HttpKernel\Fragment\FragmentHandler"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/twig-bridge/Extension/HttpKernelRuntime.php"
    "line" => 44
    "function" => "render"
    "class" => "Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/var/cache/dev/twig/b9/b9cb140abab7ef4ef8cb398831c75ac0.php"
    "line" => 207
    "function" => "renderFragment"
    "class" => "Symfony\Bridge\Twig\Extension\HttpKernelRuntime"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 171
    "function" => "block_header"
    "class" => "__TwigTemplate_dc67cdc305f050f0a27ba7ef152f05af"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/var/cache/dev/twig/b9/b9cb140abab7ef4ef8cb398831c75ac0.php"
    "line" => 91
    "function" => "displayBlock"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 394
    "function" => "doDisplay"
    "class" => "__TwigTemplate_dc67cdc305f050f0a27ba7ef152f05af"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 367
    "function" => "displayWithErrorHandling"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/var/cache/dev/twig/c3/c336f4e76fc20e4db84e3be131276b68.php"
    "line" => 52
    "function" => "display"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 394
    "function" => "doDisplay"
    "class" => "__TwigTemplate_3ce0324a396de697d1fad9fabd68df72"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 367
    "function" => "displayWithErrorHandling"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Template.php"
    "line" => 379
    "function" => "display"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/TemplateWrapper.php"
    "line" => 38
    "function" => "render"
    "class" => "Twig\Template"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/twig/twig/src/Environment.php"
    "line" => 280
    "function" => "render"
    "class" => "Twig\TemplateWrapper"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 448
    "function" => "render"
    "class" => "Twig\Environment"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 453
    "function" => "doRenderView"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/framework-bundle/Controller/AbstractController.php"
    "line" => 253
    "function" => "doRender"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/src/Controller/ArticleController.php"
    "line" => 277
    "function" => "render"
    "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 181
    "function" => "show"
    "class" => "App\Controller\ArticleController"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]
Symfony\Component\Security\Http\Firewall\ContextListener:171
[
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/security-http/Firewall/ContextListener.php"
    "line" => 171
    "function" => "remove"
    "class" => "Symfony\Component\HttpFoundation\Session\Session"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
    "line" => 116
    "function" => "onKernelResponse"
    "class" => "Symfony\Component\Security\Http\Firewall\ContextListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 220
    "function" => "__invoke"
    "class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/event-dispatcher/EventDispatcher.php"
    "line" => 56
    "function" => "callListeners"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
    "line" => 139
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\EventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 214
    "function" => "dispatch"
    "class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 202
    "function" => "filterResponse"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/HttpKernel.php"
    "line" => 76
    "function" => "handleRaw"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/http-kernel/Kernel.php"
    "line" => 197
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\HttpKernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
    "line" => 35
    "function" => "handle"
    "class" => "Symfony\Component\HttpKernel\Kernel"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    "line" => 29
    "function" => "run"
    "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
    "type" => "->"
  ]
  [
    "file" => "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
    "line" => 5
    "args" => [
      "/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/vendor/autoload_runtime.php"
    ]
    "function" => "require_once"
  ]
]

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_ENV
"dev"
APP_SECRET
"0a988e63f011514eaabfc650b599af4d"
CORS_ALLOW_ORIGIN
"*"
DATABASE_URL
"mysql://bbndb_rctuser:33F5W25z40or0f7@localhost:3306/rct_bbntimes"
GOOGLE_RECAPTCHA_SECRET_KEY
"6LdV5fgpAAAAANxzTG8ZMfIjil1wu-1vrQvnUt-x"
GOOGLE_RECAPTCHA_SITE_KEY
"6LdV5fgpAAAAAENKcn73MJAhQrbtQeqgyC4wDLMP"
MAILER_DSN
"smtp://no-reply%40rct.dev.bbntimes.com:Bl6%26gLD48%26Of919@rct.dev.bbntimes.com:465"
MARIADB_PASSWORD
"i!87pK&!85ezc8"

Defined as regular env variables

Key Value
APP_DEBUG
"1"
BASE
"/public"
CONTEXT_DOCUMENT_ROOT
"/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com"
CONTEXT_PREFIX
""
DOCUMENT_ROOT
"/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br, zstd, deflate"
HTTP_CONNECTION
"close"
HTTP_COOKIE
"PHPSESSID=7pvn5l347f4s1u325i5ertiu4o"
HTTP_HOST
"rct.dev.bbntimes.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
PHP_SELF
"/public/index.php"
PP_CUSTOM_PHP_CGI_INDEX
"plesk-php81-fastcgi"
PP_CUSTOM_PHP_INI
"/var/www/vhosts/system/rct.dev.bbntimes.com/etc/php.ini"
QUERY_STRING
""
REDIRECT_BASE
"/public"
REDIRECT_HTTPS
"on"
REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_REDIRECT_HTTPS
"on"
REDIRECT_REDIRECT_PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_REDIRECT_PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY
"0"
REDIRECT_REDIRECT_SCRIPT_URI
"https://rct.dev.bbntimes.com/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
REDIRECT_REDIRECT_SCRIPT_URL
"/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
REDIRECT_REDIRECT_SSL_TLS_SNI
"rct.dev.bbntimes.com"
REDIRECT_REDIRECT_STATUS
"200"
REDIRECT_REDIRECT_UNIQUE_ID
"Z_8FKg2wBbuE9xlTTtQE1wAAAIs"
REDIRECT_SCRIPT_URI
"https://rct.dev.bbntimes.com/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
REDIRECT_SCRIPT_URL
"/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
REDIRECT_SSL_TLS_SNI
"rct.dev.bbntimes.com"
REDIRECT_STATUS
"200"
REDIRECT_UNIQUE_ID
"Z_8FKg2wBbuE9xlTTtQE1wAAAIs"
REDIRECT_URL
"/public/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
REMOTE_ADDR
"18.226.150.251"
REMOTE_PORT
"25847"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1744766250
REQUEST_TIME_FLOAT
1744766250.6328
REQUEST_URI
"/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
SCRIPT_FILENAME
"/var/www/vhosts/dev.bbntimes.com/rct.dev.bbntimes.com/public/index.php"
SCRIPT_NAME
"/public/index.php"
SCRIPT_URI
"https://rct.dev.bbntimes.com/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
SCRIPT_URL
"/technology/using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
SERVER_ADDR
"5.196.1.209"
SERVER_ADMIN
"[no address given]"
SERVER_NAME
"rct.dev.bbntimes.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SIGNATURE
"<address>Apache Server at rct.dev.bbntimes.com Port 443</address>\n"
SERVER_SOFTWARE
"Apache"
SSL_TLS_SNI
"rct.dev.bbntimes.com"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_SECRET,DATABASE_URL,MARIADB_PASSWORD,CORS_ALLOW_ORIGIN,MAILER_DSN,GOOGLE_RECAPTCHA_SECRET_KEY,GOOGLE_RECAPTCHA_SITE_KEY"
UNIQUE_ID
"Z_8FKg2wBbuE9xlTTtQE1wAAAIs"

Sub Requests 6

CookieController :: renderAnalysis (token = 950bb2)

Key Value
_controller
"App\Controller\CookieController::renderAnalysis"
_format
"html"
_locale
"en"
_stopwatch_token
"3dd09c"

AppController :: renderHeader (token = 9203ce)

Key Value
_controller
"App\Controller\AppController::renderHeader"
_format
"html"
_locale
"en"
_stopwatch_token
"0ed98f"
slug
"home"

ArticleController :: trendingArticle (token = ecb7c9)

Key Value
_controller
"App\Controller\ArticleController::trendingArticle"
_format
"html"
_locale
"en"
_stopwatch_token
"b6996c"
category
"Technology"

ArticleController :: relatedArticles (token = eb4b05)

Key Value
_controller
"App\Controller\ArticleController::relatedArticles"
_format
"html"
_locale
"en"
_stopwatch_token
"e0f88b"
current_article
App\Entity\Article {#1094
  -id: 7072
  -title: "Data Science: Everything You Need to Know About Using R for the Very First Time "
  -slug: "using-r-for-the-very-first-time-here-is-everything-you-need-to-know"
  -introtext: """
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <p id="be5f" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">I was recently tasked with familiarizing an intern with R.&nbsp;As I thought about how best to direct him, I remembered how much I struggled to get my footing when R was entirely new to me. </span></p>\r\n
    """
  -content: """
    \r\n
    <p id="be5f" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">I initially found so many great resources that explained various packages, best practices, and analyses, but I didn’t even know where to type my code! I eventually pieced together a general understanding of R usage via YouTube videos and felt like I was moving along successfully.</span></p>\r\n
    <p id="d03f" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Then I was fortunate enough to take a fantastic R-based Data Science source in grad school and realized that my code was a mess. I didn’t know that R Projects and R Markdown files existed, so all of my code existed in poorly-organized scripts on my desktop. I backed up my work by emailing copies to myself and utilized variable names and spacing that make me cringe now. That course helped me learn how to create code that not only runs, but that is reproducible and which facilitates effective collaboration on my data analytics team.</span></p>\r\n
    <p id="09b3" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Hoping to help this intern avoid my initial mistakes, I compiled the following guide for getting started with R. It is designed for complete beginners — the first section actually covers where to install the software! I made sure to include many of the important lessons that I learned in that Data Science course, and therefore frequently referenced the&nbsp;course website&nbsp;in the creation of this guide. I share this link not only to give credit to Jeff Goldsmith for his ideas, but also to provide a very useful resource for those looking for instruction that extends beyond the material covered here. This guide is certainly not exhaustive, but should get you up and running in R with a good workflow!</span></p>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    <hr class="ir au is it by iu iv iw ix iy iz ja" />\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <h2 id="bd4e" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">1.</strong>&nbsp;<strong class="hr jb">Installing Software</strong></span></h2>\r\n
    <p id="1afc" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">First, you’ll want to install both R and RStudio!</span></p>\r\n
    <p id="cdd9" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">R download link:&nbsp;https://cloud.r-project.org/</span></p>\r\n
    <p id="a503" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">From here, choose your operating system and select the latest release.</span></p>\r\n
    <p id="238b" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">RStudio download link: https://rstudio.com/products/rstudio/download/</span></p>\r\n
    <p id="e46e" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">From here, choose the free RStudio Desktop option.</span></p>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    <hr class="ir au is it by iu iv iw ix iy iz ja" />\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <h2 id="3dc8" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">2.</strong>&nbsp;<strong class="hr jb">Getting Familiar with RStudio</strong></span></h2>\r\n
    <p id="58d8" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Open up RStudio, and this should be the screen that you see:</span></p>\r\n
    <p><img src="/images/Getting_familiar_with_RStudio.png" alt="Getting_familiar_with_RStudio.png" width="800" height="603" /></p>\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <p id="2e84" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">So, what are you looking at?</span></p>\r\n
    <p id="6bec" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In blue is your console — you can run code here that won’t be saved as part of your script (you may want to do use this option to install a package, or to quickly view a table), and this is where you’ll see information about code that you’ve run and any errors that you may receive. The other tabs allow you to access your terminal and jobs, but you will use these far less frequently as you get familiar with R.</span></p>\r\n
    <p id="c7e4" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In green is the environment. Any named entity you create (e.g. a dataframe, a vector, a function) will show up here. Often times you can click on what is in the environment to view it — this is very useful when you load in external data and are cleaning it. The little broom icon can be used to empty this environment. Once we set up git and a connection to GitHub, a “Git” tab will be visible here as well.</span></p>\r\n
    <p id="62e3" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In red is a viewer pane. Currently it is on the “Packages” tab, which allows you to see what packages are installed locally. Those with a checkmark are currently loaded. Depending on your RStudio settings, output from your code may show up in the “Plots” and “Viewer” tabs. You can search package names in the “Help” tab for useful information.</span></p>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    <hr class="ir au is it by iu iv iw ix iy iz ja" />\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <h2 id="7acb" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">3.</strong>&nbsp;<strong class="hr jb">File Types</strong></span></h2>\r\n
    <p><img src="/images/File_types.png" alt="File_types.png" width="800" height="961" /></p>\r\n
    <p id="d5dc" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">The workflow that I will be walking through utilizes R Markdown files whenever possible, but I want to quickly cover R Scripts and Shiny Web Apps.</span></p>\r\n
    <p id="7439" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">Scripts:</em></span></p>\r\n
    <p><img src="/images/Scripts.png" alt="Scripts.png" width="800" height="568" /></p>\r\n
    <p id="2c43" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Scripts are the most basic file type for writing code in R, and are often used to store functions or other code that will eventually be deployed. Even if you are able to opt for exclusive R Markdown usage while getting started with R, you will often receive code from others in scripts and it is important to be familiar with this format. As you can see, enclosed in the blue box is a new panel that is available now that you are in a script. This is where you can enter your code.</span></p>\r\n
    <p id="d929" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">I’ve created three named values: “x”, “y”, and “sum”, which is the sum of x and y. Since all three are named, they can be found in the environment panel with their associated numeric values.</span></p>\r\n
    <p id="8dfe" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Take a look at the console.</span></p>\r\n
    <p id="4ae5" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">The first three blue lines showed up when I ran the three lines of code — they simply indicate that the code has run.</span></p>\r\n
    <p id="6677" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In the fourth line, I typed “x + y” directly into the console and pressed “enter.” The black text below provides the answer to this equation. Since this was only entered in the console, this output won’t be saved anywhere or impact the script.</span></p>\r\n
    <p id="66ba" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Try to replicate the very simple code that I have here. You can run code by clicking the “Run” button, or by pressing the&nbsp;<em class="jz">command + return</em>&nbsp;keys at the same time on a Mac (for Windows, press&nbsp;<em class="jz">control + enter</em>).</span></p>\r\n
    <p id="5b88" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">Shiny:</em></span></p>\r\n
    <p id="1a09" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">I’m not going to explain how to create Shiny apps as this is something to tackle once you’re fairly comfortable coding in R, but it’s good to know that they exist. Shiny allows you to create interactive dashboards and is a great tool for data visualization. You can host dashboards publicly through RStudio’s servers, embed them in websites, and more.</span></p>\r\n
    <p id="0f46" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Here is some further information on Shiny if you’re interested:&nbsp;https://shiny.rstudio.com/</span></p>\r\n
    <p id="1590" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">R Markdown files:</em></span></p>\r\n
    <p id="f68b" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Use of Markdown files is an essential tool for creating reproducible, understandable code. In addition to the actual Markdown file that you write code in, you can “knit” it (I’ll cover what this means) to an output file which is easy to read and can be opened by people without R installed. You can select what kind of output you want from the bubbles below (HTML, PDF, and Word). I like to stick with HTML because it formats well and allows for online sharing, but I often create PDFs for final reports that I share with coworkers outside of the data analysis team.</span></p>\r\n
    <p><img src="/images/R_Markdown_files.png" alt="R_Markdown_files.png" width="800" height="711" /></p>\r\n
    <p><span style="color: #000000;">Go ahead and click “OK”! This is what you should see next:</span></p>\r\n
    <p><img src="/images/Click_Ok.png" alt="Click_Ok.png" width="800" height="513" /></p>\r\n
    <p id="0592" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">So, what are you looking at?</span></p>\r\n
    <p id="95a7" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In blue is your YAML header with the information you just entered. Want to change your title, the date, or output type? You can easily do that here by editing the text between the quotation marks associated with title, author, and date and by swapping out “html_document” for “pdf_document” or “word_document.” If you aren’t interested in having a title, author, or date listed in your output file, you can simply delete the associated rows.</span></p>\r\n
    <p id="7c77" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In green is a code chunk. All of your code will be contained within code chunks. Code chunks all follow the following format:</span></p>\r\n
    <p><img src="/images/chunk_name.png" alt="chunk_name.png" width="800" height="117" /></p>\r\n
    <p id="01e5" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">You can insert a code chunk directly on Macs through the&nbsp;<em class="jz">option + command + i</em>&nbsp;shortcut (on Windows,&nbsp;<em class="jz">control + Alt + i</em>). You can run a single code chunk by pressing the green arrow in the top right corner of the chunk.</span></p>\r\n
    <p id="6667" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">It is good practice to name your code chunks. This is useful for anyone else who might use your code, as well as for troubleshooting efficiently when your code produces errors. You want to use the same guidelines for code chunk naming as you use for variable naming: unique, descriptive, and without spaces. For example, you might have code chunks named “data_import,” “data_cleaning,” “analysis,” and “plots”.</span></p>\r\n
    <p id="106e" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">There are several specifications that you can use to change how the code in any given code chunk appears in your output file, and the most common ones are provided below:</span></p>\r\n
    <p><img src="/images/List_by_Jeff.png" alt="List_by_Jeff.png" width="801" height="174" /></p>\r\n
    <p style="text-align: center;"><span style="color: #000000;">List by Jeff Goldsmith:</span>&nbsp;<a href="https://p8105.com/writing_with_data.html">https://p8105.com/writing_with_data.html</a></p>\r\n
    <p><span style="color: #000000;">In red is a header. You can determine the size of the header in your output file using pound signs, with each additional “#” making the header smaller:</span></p>\r\n
    <p><img src="/images/Main_Heading.png" alt="Main_Heading.png" width="800" height="105" /></p>\r\n
    <p id="c4a9" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In grey is regular text, which will appear as such in your output file. Good Markdown files usually have a lot of text to help guide others through your code and make it more understandable. Well-documented code will also make it easier to understand your own code when you go back to it later!</span></p>\r\n
    <p id="dda4" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">It’s useful to know that you can bold and italicize text, as well as add in-line code:</span></p>\r\n
    <p><img src="/images/bold.png" alt="bold.png" width="801" height="105" /></p>\r\n
    <p id="b1fe" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">A useful cheat sheet for using and formatting R Markdown files can be found here:&nbsp;https://rstudio.com/wp-content/uploads/2016/03/rmarkdown-cheatsheet-2.0.pdf</span></p>\r\n
    <p id="7fdd" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In orange is the “Knit” button — this is how you create your output file! The file will only knit if there are no errors in the code, so knitting is also a useful way to check your work. Try clicking the Knit button now to see how the sample code looks in an output file.</span></p>\r\n
    <hr class="ir au is it by iu iv iw ix iy iz ja" />\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <h2 id="30b1" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">4.</strong>&nbsp;<strong class="hr jb">Workflow and Git</strong></span></h2>\r\n
    <p id="dde6" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">An essential skill for using R effectively and reproducibly is having a clear, standardized workflow. I’ll walk through one using GitHub here, and you should always use a consistent workflow when you work in R.</span></p>\r\n
    <p id="8f3d" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Git and GitHub are commonly-used tools for version control and code-sharing. In order to get started, you’ll need to create a free account on GitHub:&nbsp;https://github.com/</span></p>\r\n
    <p id="1338" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Next, you’re going to want to verify that git is installed and ready to go on your computer. In order to do that, you should follow this guide:&nbsp;https://happygitwithr.com/install-git.html&nbsp;(although you can use the terminal tab in RStudio instead of the shell to follow the instructions in 6.1 if you like — I find that much easier).</span></p>\r\n
    <p id="61d7" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Now, you should be configured to follow the following work flow:</span></p>\r\n
    <ul class="">\r\n
    <li id="81b7" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ky kz la cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">Create a meaningfully-named GitHub repository</em></span></li>\r\n
    <li id="b1e9" class="hp hq fn hr b hs lb hu hv hw lc hy hz ia ld ic id ie le ig ih ii lf ik il im ky kz la cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">Create a new project in R and link it to this repo</em></span></li>\r\n
    <li id="0a4a" class="hp hq fn hr b hs lb hu hv hw lc hy hz ia ld ic id ie le ig ih ii lf ik il im ky kz la cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">Store all related files in this project folder with meaningfully-named, consistent subfolders (such as a “data” folder that stores all of your data)</em></span></li>\r\n
    <li id="f5d0" class="hp hq fn hr b hs lb hu hv hw lc hy hz ia ld ic id ie le ig ih ii lf ik il im ky kz la cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">Use the Git tab in R to consistently knit, commit, and push</em></span></li>\r\n
    </ul>\r\n
    <p id="2b40" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Let’s walk through this:</span></p>\r\n
    <p id="6871" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">I. Create a meaningfully-named GitHub repository</em></span></p>\r\n
    <p id="2301" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In GitHub, click on Repositories and then click New:</span></p>\r\n
    <p><img src="/images/Repositories.png" alt="Repositories.png" width="800" height="224" /></p>\r\n
    <p id="6694" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">From there, you can give your repo a name and brief description. This repo contained data from the second phase of a study using online chat data, and has therefore been named “chat_phase_2.” I know that this name will allow me to find the repo if I come back to it several months later, and that my collaborators will be able to keep track of it as well.</span></p>\r\n
    <p id="06ad" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Your repo can either be public (anyone can find your repo and its contents) or private (only you and designated collaborators can see it and its contents). There are many great uses for public repos (e.g. sharing packages you create, sharing cool projects you create) but if you are using data that contains confidential information and/or are conducting research that has not yet been published, you ALWAYS want to use a private repo. You can change these designations later, but should always be careful about what information you make public.</span></p>\r\n
    <p id="8f9f" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Typically, you will want to create a README file to guide yourself and anyone else who might access your repo through its contents. A good README outlines the contents of your repo, as well as providing a brief rationale for the work you’ve done.</span></p>\r\n
    <p><img src="/images/New_Repository.png" alt="New_Repository.png" width="800" height="699" /></p>\r\n
    <p><span style="color: #000000;">Click “create repository”, and then copy the link that will appear on the following page:</span></p>\r\n
    <p><img src="/images/Click_create_repository.png" alt="Click_create_repository.png" width="800" height="192" /></p>\r\n
    <p id="dd13" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">II. Create a new project in R and link it to this repo</em></span></p>\r\n
    <p id="d63c" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">In R, click File → New Project</span></p>\r\n
    <p id="5c5c" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Next, select “Project with version control”:</span></p>\r\n
    <p><img src="/images/New_Project_Wizard.png" alt="New Project Wizard" width="800" height="573" /></p>\r\n
    <p><span style="color: #000000;">Select Git:</span></p>\r\n
    <p><img src="/images/Select_Git.png" alt="Select_Git.png" width="801" height="575" /></p>\r\n
    <p><span style="color: #000000;">Finally, paste the URL that you copied from GitHub under Repository URL and click “Create Project”. I’ve created my project folder on my desktop, but you can browse to create your project anywhere on your computer.</span></p>\r\n
    <p><img src="/images/Clone_Git_Repository.png" alt="Clone Git Repository" width="800" height="573" /></p>\r\n
    <p><span style="color: #000000;">The project should open in R. You’ll know that it worked because your project will be indicated as the open project in the upper right corner of the screen, and you will now have a “Git” tab in the upper right panel.</span></p>\r\n
    <p><img src="/images/RStudio.png" alt="RStudio.png" width="801" height="437" /></p>\r\n
    <p id="038b" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">III. Store all related files in this project folder with meaningfully-named, consistent subfolders (such as a “data” folder that stores all of your data)</em></span></p>\r\n
    <p id="494f" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Now that you’ve created a local project and a GitHub repo, you’ll want to keep these clean and organized as you progress.</span></p>\r\n
    <p id="12ef" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">I added my data to the project in a data folder, so my current project folder looks like this:</span></p>\r\n
    <p><img src="/images/Data_Project.png" alt="Data_Project.png" width="800" height="424" /></p>\r\n
    <p id="4ab7" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">As I progress, any additional data will be added to this “data” folder with consistent file names, I will create an “output” folder for any important graphs or other output that I create, and I will have several R Markdown files that are intentionally divided. For example, I may have one Markdown file where I clean data, one where I perform analyses, and one where I generate visualizations.</span></p>\r\n
    <p id="1556" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;"><em class="jz">IV. Use the Git tab in R to consistently knit, commit, and push</em></span></p>\r\n
    <p id="9c37" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">GitHub only works for version control if you consistently push your work to their platform. In order to do this, click on the “Git” tab in RStudio. Any time you make changes to your local project, they’ll appear under this tab. First, click all of the changes that you’ve made since you last updated the repo. Next, click the “Commit” button.</span></p>\r\n
    <p><img src="/images/Commit.png" alt="Commit.png" width="801" height="489" /></p>\r\n
    <p id="9a8e" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">You will want to enter a commit message that describes the changes you are making. This makes it far easier for somebody else to navigate your repo, and will also make it easier to locate a previous version of your code if you need to access it later.</span></p>\r\n
    <p id="7f2d" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Once you’ve entered a commit message, select “Commit” in the bottom right corner. If that runs without error, the “Push” button will be accessible. Click “Push” to send your updates to GitHub.</span></p>\r\n
    <p><img src="/images/Review_Changes.png" alt="Review_Changes.png" width="800" height="231" /></p>\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <p id="f711" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Now all of your changes are backed up on GitHub! You will want to do this consistently as you work. I recommend checking out your GitHub account the first time you do this to see how your work is stored there. If you are accessing somebody else’s repo, or if somebody else has made changes to yours, you can use “Pull” to pull the latest version of the repo to your computer.</span></p>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    <hr class="ir au is it by iu iv iw ix iy iz ja" />\r\n
    <section class="ff fg fh fi fj">\r\n
    <div class="n p">\r\n
    <div class="ab ac ae af ag fk ai aj">\r\n
    <h2 id="66fd" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">5.</strong>&nbsp;<strong class="hr jb">Loading Packages</strong></span></h2>\r\n
    <p id="0b82" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">Now that everything is set up, you can start working in R!</span></p>\r\n
    <p id="5386" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">First, open up a new R Markdown file. If you click File → New File → R Markdown while your project is open (again, you can tell that your project is open if its name is in the top right of your window), the R Markdown file will be created in your project automatically.</span></p>\r\n
    <p id="d004" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">R automatically comes with “base R” functions. However, R is open-source (meaning that anyone can contribute packages), and there are a lot of amazing packages out there that you will need to use R efficiently. You will have to install these packages one time, and then load them every time that you want to use them. The code for doing so is provided below (note the double quotation marks to install a package and single quotes to load it). I like to install packages in the console, as I only have to do this once and therefore have no reason to save the line of code which installs the package. You will see confirmation in the console that the package has installed and loaded correctly.</span></p>\r\n
    <p><img src="/images/install.packages.png" alt="install.packages.png" width="797" height="81" /></p>\r\n
    <p><span style="color: #000000;">Note: Tidyverse is actually a collection of packages rather than a single package. I highly, HIGHLY recommend familiarizing yourself with tidyverse and the packages included within it. They are widely used and are popular because they will make your life infinitely easier — I automatically load it every time I create a new Markdown file. You can find more information about tidyverse and its component packages here:&nbsp;</span>https://www.tidyverse.org/</p>\r\n
    <h2 id="eedb" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">6.</strong>&nbsp;<strong class="hr jb">Other Notes</strong></span></h2>\r\n
    <p id="19d9" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">R is case-sensitive, unlike SAS and some other languages. This case-sensitivity is one of the reasons it’s so important to use consistent file- and variable-naming structures — you’ll be less likely to have annoying errors in your code and anyone else looking at your code will be more able to follow it. Personally, I use snake case (everything_is_lowercase_with_underscores) exclusively.</span></p>\r\n
    <p id="d9b3" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">There are also established guidelines for how you should format your code. You should strive for code that not only runs, but is also tidy! One useful style guide from Hadley Wickham can be found here:&nbsp;</span>http://adv-r.had.co.nz/Style.html</p>\r\n
    <h2 id="a8e7" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd"><span style="color: #10228b;"><strong class="hr jb">7.</strong>&nbsp;<strong class="hr jb">Up and Running!</strong></span></h2>\r\n
    <p id="9447" class="hp hq fn hr b hs ht hu hv hw hx hy hz ia ib ic id ie if ig ih ii ij ik il im ff cd" data-selectable-paragraph><span style="color: #000000;">You should now be able to open a new R Markdown file as part of an intentional workflow and to install and load packages within that file. These skills set you up to make even better use of the fantastic tutorials out there than can walk you through importing, cleaning, analyzing, and visualizing your data in R.</span></p>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    </div>\r\n
    </div>\r\n
    </section>\r\n
    </div>\r\n
    </div>\r\n
    </section>
    """
  -user: Proxies\__CG__\App\Entity\User {#1092 …}
  -createdAt: DateTime @1601843242 {#1145
    date: 2020-10-04 20:27:22.0 UTC (+00:00)
  }
  -updatedAt: DateTime @1622207807 {#1150
    date: 2021-05-28 13:16:47.0 UTC (+00:00)
  }
  -deletedAt: null
  -category: App\Entity\Category {#445 …}
  -status: "published"
  -imageCard: Proxies\__CG__\App\Entity\File {#1184 …}
  -ImageHeader: Proxies\__CG__\App\Entity\File {#1184 …}
  -featured: false
  -mainView: false
  -clicks: 4354
  -comments: Doctrine\ORM\PersistentCollection {#1125 …}
  -reviewed_at: DateTime @1601843242 {#1148
    date: 2020-10-04 20:27:22.0 UTC (+00:00)
  }
  -metakey: "Here is everything you need to know about using R"
  -metadesc: "Data Science: Everything You Need to Know About Using R for the Very First Time "
  -robots: null
  -publishedAt: DateTime @1601843242 {#1147
    date: 2020-10-04 20:27:22.0 UTC (+00:00)
  }
  -canonical: null
  -superTag: null
}

AppController :: renderFooter (token = 533eaf)

Key Value
_controller
"App\Controller\AppController::renderFooter"
_format
"html"
_locale
"en"
_stopwatch_token
"9a0f12"

CookieController :: renderCookie (token = 6142d6)

Key Value
_controller
"App\Controller\CookieController::renderCookie"
_format
"html"
_locale
"en"
_stopwatch_token
"9a84b9"