Back

Takata from the Bank of Japan states that Japan is close to achieving its inflation goal.

Japan has largely met the Bank of Japan’s (BoJ) price target, with inflation exceeding 2%. Signs suggest a broader rise in prices. Consumption in Japan is expected to grow modestly. The Tankan report shows that tariffs haven’t significantly impacted the economy.

Market Volatility Concerns

Concerns about market volatility due to US tariffs are easing. The US economy is stable, and the yen is losing value. The BoJ needs to adjust its monetary policy gradually. Currently, USD/JPY is up by 0.11%, trading at 150.75. The BoJ is Japan’s central bank, aiming for around 2% inflation. They started a very loose monetary policy in 2013, which included Quantitative and Qualitative Easing. In 2016, the BoJ introduced negative interest rates and began managing the yield on 10-year government bonds. In March 2024, they raised interest rates. This stimulus led to a weaker yen, but this trend reversed somewhat in 2024 when the BoJ maintained its loose policy.

Policy Unwinding

The BoJ is now unwinding its policy due to rising inflation and potential wage increases. The weaker yen and higher global energy prices have contributed to increasing inflation in Japan. A senior BoJ official has indicated that their inflation goal has largely been achieved, suggesting we prepare for further tightening of monetary policy. This means the gradual shift away from a loose policy, which started in 2024, will continue. We must consider possible interest rate hikes soon. Recent data supports this perspective, showing Japan’s core inflation has stayed above 2% for over a year, with the September 2025 rate at 2.5%. Additionally, this year’s spring wage negotiations resulted in an average salary increase of over 4%, strengthening consumer spending and causing inflation effects. These factors align with the central bank’s criteria for further normalization. For traders, this forecast points to a stronger yen. The gap between interest rates in Japan and other major economies, like the US, is likely to narrow. With USD/JPY near the 151 mark, we should prepare for potential downward pressure. Options strategies that benefit from a declining USD/JPY, such as buying put options, could become more appealing. The expectation of a gradual, multi-step process means the timing of future actions is uncertain, likely increasing currency volatility. This situation is ideal for traders using options to capitalize on price fluctuations, as implied volatility for yen pairs is expected to rise leading up to BoJ meetings. We should prepare for larger-than-usual price movements around these announcements. Looking back, the first rate hike in March 2024 marked a significant change after almost twenty years, and the BoJ has acted carefully since then. However, with the US economy avoiding a major downturn and fears of external shocks decreasing, the BoJ’s path forward is clearer. Today’s conditions for raising rates are much more favorable than they were a year ago. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

AUD/JPY rises to around 98.10 as Japan considers its first female leader, strengthening above 98.00

The AUD/JPY exchange rate rose to about 98.10 during Monday’s trading in Asia. This increase was influenced by the possible appointment of Sanae Takaichi as Japan’s first female Prime Minister and concerns about Japan’s fiscal health. China’s GDP growth in the third quarter was 4.8% year-on-year, matching expectations, with a quarterly growth of 1.1%. Industrial production increased by 6.5%, exceeding estimates, while retail sales grew by 3.0%.

Japan’s Political Changes

Japan’s ruling parties are forming a coalition government, and a vote for Prime Minister is coming soon. Analysts believe Takaichi’s leadership could lead to significant spending and easier monetary policy, which may affect the value of the Yen. The Japanese Yen’s worth is related to the Bank of Japan’s policies, bond yield differences, and market risks. The Bank of Japan (BoJ) has historically intervened to lower the Yen’s value and has maintained a very loose monetary policy since 2013, resulting in Yen depreciation. Recently, the BoJ has started to tighten its policy, impacting the Yen’s value. The Yen is often viewed as a safe-haven currency that strengthens during global market turmoil. Takaichi’s expected appointment as Japan’s Prime Minister is sending a clear short-term trading signal. Her reputation for advocating significant fiscal spending and loose monetary policy is causing the Yen to weaken. This is the main factor pushing the AUD/JPY exchange rate towards the 98.10 level.

Impact on AUD/JPY Pair

This situation could delay or even reverse the gradual policy normalization the BoJ began last year. The BoJ ended its negative interest rate policy in March 2024, which temporarily supported the Yen. The market now anticipates a return to a more dovish approach, benefiting the AUD/JPY. For derivative traders, the current upward momentum suggests buying AUD/JPY call options is a simple strategy. This allows traders to take advantage of further Yen weakness after Tuesday’s official vote, with risk limited to the premium paid. Considering strike prices around 98.50 or 99.00 for short-dated options could be wise. However, we also need to consider risks from Australia, where slowing growth in China is a concern. China’s GDP growth of 4.8% is down from 5.2% in the previous quarter, which may limit the Aussie’s strength. A bull call spread may be a more cautious approach, allowing for profit from a modest rally while reducing some of the premium costs. We should expect increased volatility leading up to the Prime Minister’s confirmation and any early policy announcements. This environment could make long volatility strategies, like straddles, potentially profitable if the new leadership introduces unexpected changes. Current sentiment suggests the path of least resistance is upward for this currency pair. Looking back, the AUD/JPY exchange rate tested the key psychological level of 100.00 multiple times in 2024. This historical resistance level will be crucial to monitor in the coming weeks. Trading strategies could be set around this level, either for profit-taking or preparing for a potential rejection. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

WTI oil prices around $57.00 struggle after earlier gains due to oversupply concerns

WTI oil prices are hovering around $57.00, mainly due to worries about oversupply from OPEC+ countries. The International Energy Agency (IEA) predicts that OPEC+ might increase production, potentially leading to a surplus in the market. President Donald Trump stated that India’s Prime Minister promised to stop buying Russian oil, warning of tariffs otherwise. However, sources in India indicate that no cuts will happen immediately, although future import data might change starting in December.

Indian Imports of Russian Oil

According to data from Kpler, India’s imports of Russian oil are set to increase by 20% in October, reaching 1.9 million barrels per day. This rise is partly due to more Russian exports following drone attacks on refineries. WTI oil, or West Texas Intermediate, is a key type of crude oil known for its low gravity and sulfur content. Its price is affected by supply and demand, geopolitical issues, and the value of the US dollar. Oil inventory reports from the American Petroleum Institute (API) and the Energy Information Administration (EIA) also play a role in price changes. Lower inventories often indicate higher demand. OPEC, and OPEC+ when including non-OPEC members like Russia, affects prices by setting production limits. Lower production limits usually lead to higher prices, while increased production can reduce them.

Market Reactions and Strategies

With WTI crude struggling to stay above $57.00, the market is reacting to worries about oversupply. The IEA’s recent report confirmed these fears, predicting a bigger market surplus than expected. This suggests that prices may trend down in the near future. The latest data from the EIA now estimates a global supply surplus of 0.8 million barrels per day for the last quarter of 2025. This increase in surplus forecasts puts downward pressure on prices. We should pay close attention to the upcoming weekly inventory reports from the API and EIA for confirmation of this trend. Geopolitical factors are also impacting the market. Despite US threats regarding India’s Russian oil purchases, recent tracking data shows that imports of Russian crude are increasing toward 1.9 million barrels per day. This indicates that global supply remains strong despite political tensions. We’ve seen similar patterns before, particularly from 2022 to 2024, when sanctioned oil still reached the market, softening the effects of geopolitical events on supply. For traders, this environment makes buying put options an interesting strategy to profit from a potential drop below the $57 support level. Selling out-of-the-money call options could also be a good choice, allowing traders to collect premiums while betting against a significant price increase. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

In the third quarter of 2025, China’s economy grew by 4.8% annually, meeting expectations.

China’s economy grew by 4.8% annually in the third quarter of 2025, down from 5.2% in the second quarter. Compared to the previous quarter, the GDP increased by 1.1%, exceeding the expected 0.8%. In June, retail sales climbed by 3.0% annually, and industrial production jumped by 6.5%, both beating forecasts. However, fixed asset investment saw a decline of 0.5% year-to-date in September. The Australian Dollar (AUD) saw a small uptick after the release of China’s GDP data, with AUD/USD rising by 0.24% to reach 0.6511.

Projected GDP Growth For Q3

The National Bureau of Statistics of China projects a GDP growth of 0.8% for Q3, down from 1.1% in Q2. Retail sales and industrial production are estimated to grow by 2.9% and 5.0% year-over-year, respectively. AUD/USD dipped slightly in anticipation of the GDP release and amid the ongoing US federal government shutdown. A stronger-than-expected GDP result could boost the AUD, but there are still risks to consider. GDP measures economic growth over time and plays a significant role in determining currency strength and inflation. A higher GDP typically leads to a stronger currency, attracting foreign investment and affecting interest rates and gold prices. The economic data from China released on October 20, 2025, offers a mixed but optimistic outlook. Despite the annual GDP growth slowing to 4.8%, the quarterly growth and industrial production figures have exceeded expectations. This indicates that China’s economic engine is performing better than anticipated, which could support risk assets in the near future.

Implications For The Australian Dollar

The robust industrial output, which increased by 6.5%, is a key factor likely driven by exports in green energy and electric vehicles. Strong industrial activity supports commodity prices, with iron ore—an important Australian export—remaining steady above $115 a tonne through October 2025. This situation is generally positive for the Australian dollar. However, the 0.5% drop in fixed asset investment highlights ongoing challenges in the property sector. This decline continues a trend that began with a 9.6% drop in property investment back in 2023. The persistent weakness means any potential rebound based on this data could be fragile and vulnerable to negative developments in real estate. For derivative traders, the outlook favors a bullish stance on the Australian dollar, especially against a weakening US dollar. The AUD/USD pair is currently at 0.6511, benefiting from positive surprises in Chinese data and the third week of the US government shutdown. We anticipate upward movement towards the 0.6560 level seen in September 2025. Given the risks in the property market, we should consider defined-risk strategies rather than outright long positions. Buying AUD/USD call options or using bull call spreads would allow us to capitalize on potential gains while limiting our losses. This approach is sensible, especially since the pair has struggled to breach the 0.6400-0.6600 range for much of the past two years. The current weakness of the US dollar due to the government shutdown provides a favorable environment for the AUD. Recall the 35-day shutdown from 2018-2019, which created lasting uncertainty and dollar weakness. If the current political deadlock continues, it is likely to pressure the dollar further and boost currencies like the AUD. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

China’s third quarter GDP surpassed expectations, reaching 1.1% instead of the predicted 0.8%

China’s Gross Domestic Product (GDP) grew by 1.1% in the third quarter, beating the expected 0.8%. This positive economic update boosted the Australian Dollar, helping it keep its gains. The USD/CAD pair dipped slightly, approaching 1.4000, even with falling oil prices. The Japanese Yen also gained some ground against a weaker USD, but further increases seem limited.

Gold Prices Drop After Holidays

Gold prices have fallen to about $4,245 following the holiday season, as demand decreased from recent highs. In India and Pakistan, however, gold prices have increased according to FXStreet data. In the cryptocurrency world, Mantle, Zcash, and Bittensor made gains after earlier declines. On the other hand, BNB, Solana, and Cardano faced double-digit losses due to a wave of market liquidations exceeding $1 billion. The EUR/USD pair is steady around 1.1650 after S&P Global Ratings downgraded France’s credit rating due to budget concerns. The GBP/USD pair remains stable above 1.3400, balancing a weaker USD with cautious expectations from the Bank of England.

China’s Economic Growth Impact

China’s GDP growth of 1.1% in the third quarter indicates a strong demand for commodities, which helps support the Australian Dollar. For instance, Australian iron ore exports to China increased by 4% in September 2025 from the prior month, reinforcing this positive trend. The Euro is facing challenges, especially after S&P downgraded France’s credit rating to A+. This points to financial weaknesses in a key Eurozone country, making it tough to feel optimistic about the EUR/USD pair. This news comes after last week’s unexpected 0.5% drop in German factory orders, indicating broader regional weakness. Gold is currently sitting below $4,250 after a strong upward run, which was fueled by the Federal Reserve’s rate cut in August 2025. With China’s robust economic data, some investors may shift funds from safe havens to riskier assets in the short term. This pullback offers a chance to reassess strategies before the next major event. Looking ahead, the meeting between Trump and Xi is generating significant uncertainty, particularly regarding strategic resources. The Cboe Volatility Index (VIX) rose above 18 for the first time in two months last week, signaling that traders are buying protection, like puts on major market indices, as the summit approaches. Meanwhile, the British Pound is stuck in a narrow range against a weaker US Dollar. Dovish expectations for the Bank of England are limiting any major gains. Last week, UK inflation data showed a rate of 2.2%, slightly above the bank’s target, leaving little ground for a hawkish shift. This stalemate makes low-volatility options strategies like short straddles appealing for GBP/USD. The cryptocurrency market is showing stress, with over $1 billion in liquidations leading to significant losses in tokens like Solana and Cardano. Such deleveraging events can clear out weak investors and may indicate a short-term bottom, but they also highlight high volatility. Open interest on major crypto derivatives exchanges has dropped by nearly 15% since Friday, showing traders are closing positions. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

In September, China’s retail sales surpassed expectations with a 3% year-on-year growth, compared to the predicted 2.9%

In September, China’s retail sales grew by 3% compared to last year, beating expectations of 2.9%. This suggests a positive trend in China’s retail sector. At the same time, USD/CAD is trading around 1.4000, even with falling oil prices. The Japanese Yen has also recovered against a weaker US Dollar.

Gold And Currency Impact

Gold prices in Pakistan and India increased, along with the value of the Australian Dollar, thanks to China’s economic growth in the third quarter. The EUR/USD pair is under pressure, sitting near 1.1660 due to France’s credit rating downgrade. In the cryptocurrency market, coins like Mantle, Zcash, and Bittensor have bounced back, nearly recovering past losses. On the other hand, cryptocurrencies such as BNB, Solana, and Cardano dropped over 10%, leading to market liquidations exceeding $1 billion. Looking ahead, FXStreet highlights the importance of careful research before making investments due to the risks involved. This content is for informational purposes only, stressing the need for personal diligence in investment decisions. Although China’s retail sales exceeded expectations by a small margin, we shouldn’t see this as a sign of strong recovery. We’ve seen similar small improvements in 2023 and 2024 that did not lead to significant gains in China-related assets. Thus, making big bets on things like the Australian dollar or copper futures seems too risky at this time.

Market Uncertainty

The upcoming meeting between Trump and Xi is creating a lot of uncertainty in the market, so we should prepare for price fluctuations. The VIX, which measures market fear, has risen to 18.5 this past month, a level we haven’t seen since the trade tensions of 2019. Purchasing VIX call options or puts on major indices like the S&P 500 can provide protection against unexpected news from the summit. In Europe, the downgrade of France’s credit rating is impacting the Euro, which is struggling to stay above 1.1650 against the dollar. This economic strain indicates further potential declines for the currency. We should consider buying put options on Euro FX futures to profit from a potential drop toward the 1.1500 support level. Gold is currently priced at $4,250, serving as a safe haven, but that rise seems stretched. Much of the current geopolitical risk appears to be already reflected in its price, similar to its previous highs in 2023. Using a collar strategy—buying a protective put while selling a covered call against a long gold futures position—might be a smart way to safeguard recent profits. The significant liquidation in the crypto markets is a concerning sign for overall market risk. Historically, such intense selling pressures in speculative assets—like we experienced during the market turbulence of 2022—often signal broader weakness in traditional stock markets. This is a clear indication to review our downside protection and reduce exposure to high-risk assets. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

China’s GDP growth matches expectations at 4.8% for the third quarter

China’s economy grew by 4.8% from last year in the third quarter of 2025, matching expectations. This growth continues despite challenges in the global economy. In other financial news, the EUR/USD exchange rate hovered around 1.1650 after France’s credit rating was downgraded. The GBP/USD rate remained steady above 1.3400, supported by a weaker US dollar and mixed market conditions.

Trends in Precious Metals and Cryptocurrency

Gold prices dipped slightly to about $4,245 due to lower demand after the festive season. Meanwhile, the cryptocurrency market saw liquidity surges over $1 billion, with significant losses for BNB, Solana, and Cardano. The FXStreet article reviews various brokers for traders in 2025, including those with low spreads and good leverage opportunities in different regions. China’s economy growing 4.8% in the third quarter brings stability and eases fears of a major downturn seen in previous years. This stability benefits commodity-linked currencies, making call options on the Australian dollar worth considering. China’s manufacturing PMI for September 2025 stood steady at 50.2, indicating consistent management rather than rapid growth.

Crude Oil Prices and Market Outlook

The outlook for crude oil is bearish in the short term. WTI prices struggle around $57 a barrel, down from the $80-$90 range of 2023 and 2024, indicating oversupply. Recent reports show that OPEC+ compliance has dropped below 90%, suggesting further price weakness. We could use put options to position ourselves accordingly. In Europe, the S&P downgrade of France’s credit rating poses a challenge for the euro. The gap between French and German 10-year government bonds has widened, reaching 65 basis points, showing increased risk aversion. This situation makes shorting the EUR/USD pair, perhaps through futures contracts, a smart strategy in the upcoming weeks. Gold’s drop from near $4,250 suggests that its rally may be losing momentum. The metal’s rise from 2024 lows of around $2,400 appears too stretched, and reduced physical demand offers a selling opportunity. We can consider selling out-of-the-money call spreads to earn premium while limiting risk. The upcoming meeting between Trump and Xi at the APEC summit presents significant event risk that the market may not be fully pricing in. Given potential volatility in equities and currencies, buying protection is a wise choice. The VIX index, which measures expected market volatility, is currently low at 18, making call options on the VIX a cost-effective hedge against potential disruptions in discussions. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

China’s industrial production exceeds expectations with a 6.5% year-on-year growth in September

China’s industrial production rose by 6.5% in September compared to last year, beating the expected 5%. This indicates strong growth in the country’s industrial sector. In other financial news, the AUD/JPY climbed above 98.00 as Japan’s political situation suggested the potential for a female prime minister. Meanwhile, worries about an oversupply from OPEC+ kept WTI crude oil prices around $57.00.

Cryptocurrency Weekend Rebound

Over the weekend, cryptocurrencies like Mantle, Zcash, and Bittensor bounced back nearly recovering from Friday’s declines. However, BNB, Solana, and Cardano faced significant drops during the same period, with total market losses exceeding $1 billion. In the forex market, GBP/USD stayed strong above 1.3400 thanks to a weaker USD, despite the Bank of England’s cautious outlook. At the same time, EUR/USD saw limited movement after S&P Global Ratings downgraded France’s credit rating. Gold prices dipped to roughly $4,245 as demand waned post-festive season. Looking ahead, the finance world is watching the Trump-Xi meeting at the APEC summit, where ongoing tensions are likely to be discussed without immediate resolutions. With China’s industrial production unexpectedly rising to 6.5% last month, we can expect continued strength in the Australian dollar. Strong demand for raw materials is a positive sign for Australian exports. September iron ore shipments to China increased by 8% from the previous month, suggesting that investing in AUD call options or futures could be a smart move.

Shorting Opportunities in Japan

In Japan, current conditions offer a chance to short the yen. The Bank of Japan is hinting at stepping away from its loose monetary policy just as a new government coalition raises concerns about budget discipline. This situation is likely to put pressure on the yen, a trend not seen since before the country’s long struggle with deflation. France’s credit rating downgrade by S&P poses a significant challenge for the Euro. The gap between French and German 10-year bond yields has widened to 75 basis points, marking its highest level since the 2022 energy crisis. We should consider buying puts on the EUR/USD, as this points to deeper problems in the Eurozone. Crude oil’s weakness, with WTI staying around $57, sends a bearish signal despite strong manufacturing data from China. The market is largely focused on OPEC+ oversupply, with recent reports indicating that compliance with production cuts has hit its lowest level this year. This situation creates opportunities to profit from falling prices or increased volatility in energy markets. As the upcoming Trump-Xi meeting at APEC is set to be a tense negotiation, investing in volatility seems wise. The CBOE Volatility Index (VIX) is currently at a yearly low of 14, making call options an affordable way to hedge against negative outcomes. We recall how the 2018-2019 trade war led to sharp market fluctuations, and this summit presents similar risks. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

China’s fixed asset investment falls by 0.5% year-to-date in September, missing expectations of 0.2%

Performance Of The Australian Dollar

The Australian dollar remains strong after the PBOC’s interest rate decision. China’s economy grew by 4.8% year-on-year in the third quarter of 2025, matching expectations. The EUR/USD pair is around 1.1650, affected by France’s credit rating downgrade from AA- to A+. The GBP/USD stays above 1.3400 as a weaker USD offsets cautious Bank of England forecasts. Gold is trading below $4,250, with demand slowing after the festive season. In the cryptocurrency market, Mantle, Zcash, and Bittensor bounced back over the weekend, offsetting earlier losses. Meanwhile, BNB, Solana, and Cardano experienced double-digit losses. Total crypto market liquidations exceeded $1 billion within 24 hours. There is growing excitement for the upcoming Trump-Xi meeting at the APEC summit, seen as a key diplomatic event amid rising global tensions.

Global Economic Indicators

China is showing clear signs of an economic slowdown. Fixed asset investment fell by 0.5% this year, contrary to earlier growth expectations. This is a major shift from the 4.2% growth in 2024, showing that the struggling property sector continues to impact the economy negatively. This trend may pose challenges for industrial commodities and related markets. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

In September, China’s House Price Index increased from -2.5% to -2.2%.

Japan and Oil Prices

China’s house price index improved slightly to -2.2% in September, up from -2.5%. Additionally, in the third quarter of 2025, China’s economy grew by 4.8% compared to last year, matching expectations. Oil prices have stabilized, with WTI remaining around $57.00 amid concerns about oversupply from OPEC+. The Japanese yen has weakened due to renewed worries over fiscal issues as the LDP-JIP coalition returns. In the currency markets, the EUR/USD pair traded quietly near 1.1650 after France’s credit rating was downgraded. The GBP/USD remained above 1.3400, influenced by a weaker US dollar and dovish outlook from the Bank of England. Gold prices fell to around $4,245 as demand decreased after the festive period. Meanwhile, the crypto market saw gains for Mantle, Zcash, and Bittensor over the weekend. However, BNB, Solana, and Cardano faced double-digit losses due to significant sell-offs.

China House Prices and Economic Growth

Market participants are eagerly awaiting the upcoming meeting between Trump and Xi at the APEC summit, as it may lead to tension or negotiation. This adds complexity to the global financial landscape. The small rise in China’s house price index to -2.2% indicates that the property crisis, which began with the Evergrande collapse in the early 2020s, might be stabilizing. Still, with GDP growth at just 4.8% and the PBOC guiding the yuan lower, we should view this as a managed stabilization rather than a strong recovery. The Australian dollar’s strength appears temporary and could be a reason to consider selling call options if upcoming Chinese data disappoints. Europe presents a clearer, more negative outlook. France’s credit rating downgrade to A+ highlights ongoing fiscal weaknesses in a key Eurozone country. It may be wise to buy puts on the EUR/USD pair, as its struggle near 1.1650 reflects a lack of confidence likely to continue. Geopolitical tensions are causing a significant divergence in the commodities market that we can take advantage of. Gold is holding steady around $4,250, nearly double its price from early 2024, indicating high demand for safe-haven assets ahead of the Trump-Xi meeting. Conversely, WTI oil sits at $57, suggesting that market fears about a global slowdown outweigh worries about supply disruptions. The lower crude oil prices are linked to OPEC+ oversupply concerns, a familiar issue from 2024 when several members, including Iraq, repeatedly exceeded their production quotas, hurting price stability. Selling out-of-the-money call spreads on WTI futures could be a smart move since a price increase above $65 seems unlikely without a significant trigger. Lastly, the crypto market is reflecting a broad risk-off sentiment after more than $1 billion in liquidations. Major altcoins like Solana and Cardano declined over 10%, suggesting that speculative excess is being removed from the market. Given this, it’s wise to hedge any remaining long positions by buying puts on Bitcoin and Ethereum futures. Create your live VT Markets account and start trading now.

here to set up a live account on VT Markets now

Back To Top
server

Hello there 👋

How can I help you?

Chat with our team instantly

Live Chat

Start a live conversation through...

  • Telegram
    hold On hold
  • Coming Soon...

Hello there 👋

How can I help you?

telegram

Scan the QR code with your smartphone to start a chat with us, or click here.

Don’t have the Telegram App or Desktop installed? Use Web Telegram instead.

QR code